diff --git a/README.md b/README.md index 989d9619b556853259854eee0f325d68b77fd1a1..7aba874b73d10fdce903f36a1b3960a6a53a85a3 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,20 @@ ps: 虽然我知道,大部分人都是来了**直接下载源代码**后就潇 ---- + +# 功能简介 + +- **多种编辑器**:支持wangEditor和Markdown两种富文本编辑器,可以自行选择 +- **自动申请友情链接**:在线申请友情链接,无需站长手动配置,只需申请方添加完站长的连接后自行申请即可 +- **百度推送**:支持百度推送功能,加速百度搜索引擎收录博文 +- **评论系统**:自研的评论系统,支持显示用户地址、浏览器和os信息,后台可审核评论、开启匿名评论、回复和邮件通知评论 +- **权限管理**:后台配备完善的权限管理 +- **SEO**:自带robots、sitemap等seo模板,实现自动生成robots和sitemap +- **实时通讯**:管理员可向在线的用户发送实时消息(需用户授权 - 基于websocket实现,具体参考[DBlog建站之Websocket的使用](https://www.zhyd.me/article/111)) +- **系统配置支持快速配置**:可通过后台手动修改诸如域名信息、SEO优化、赞赏码、七牛云以及更新维护通知等 +- **多种文件存储**:集成七牛云、阿里云OSS,实现文件云存储,同时支持本地文件存储 +- **文件搬运工**:集成[blog-hunter](https://gitee.com/yadong.zhang/blog-hunter)实现“文章搬运工”功能,支持一键同步imooc、csdn、iteye或者cnblogs上的文章,可抓取列表和单个文章 +- **第三方授权登录**:集成[JustAuth](https://gitee.com/yadong.zhang/JustAuth)实现第三方授权登录 # Demo 演示 [前台demo](http://dblog-web.zhyd.me/) @@ -80,19 +94,6 @@ ps: 虽然我知道,大部分人都是来了**直接下载源代码**后就潇 - webMagic - ... -# 功能简介 - -- 支持wangEditor和Markdown两种富文本编辑器,可以自行选择 -- 在线申请友情链接,无需站长手动配置,只需申请方添加完站长的连接后自行申请即可 -- 支持将文件提交到百度站长收录平台,加快百度引擎的收录 -- 自研评论系统 -- 后台配备完善的权限管理 -- 自带robots、sitemap等seo模板,实现自动生成robots和sitemap -- 集成七牛云,实现文件云存储 -- 系统配置支持快速配置。可通过后台手动修改诸如域名信息、SEO优化、赞赏码、七牛云以及更新维护通知等。 -- 管理员可向在线的用户发送实时消息(需用户授权 - 基于websocket实现,具体参考[DBlog建站之Websocket的使用](https://www.zhyd.me/article/111)) -- “文章搬运工”功能,支持一键同步imooc、csdn、iteye或者cnblogs上的文章,可抓取列表和单个文章 - # 使用方法(以blog-web项目为例) diff --git a/blog-admin/src/main/resources/templates/config.ftl b/blog-admin/src/main/resources/templates/config.ftl index 396bde2a1f6b509d4bd961e5f2974285223db481..417437a912a537a7b61a03c8e9da4c3a31b5a4af 100644 --- a/blog-admin/src/main/resources/templates/config.ftl +++ b/blog-admin/src/main/resources/templates/config.ftl @@ -52,45 +52,66 @@
- +
- +
- +
- +
- +
-
- + +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
@@ -111,19 +132,19 @@
- +
- +
- +
@@ -131,7 +152,7 @@
- +
@@ -143,7 +164,7 @@
- +
@@ -437,7 +458,7 @@
- +
@@ -450,7 +471,8 @@
- +
  • diff --git a/blog-admin/src/main/resources/templates/include/macros.ftl b/blog-admin/src/main/resources/templates/include/macros.ftl index 842f77b2c32e0d3ae6587d299e32b9237a57c333..e36ae62c928af28cfbbffa3f5699c86cfef2108e 100644 --- a/blog-admin/src/main/resources/templates/include/macros.ftl +++ b/blog-admin/src/main/resources/templates/include/macros.ftl @@ -71,7 +71,7 @@ <#if footerHtml>
    - Copyright © 2018-${.now?string('yyyy')} yadong.zhang · Powered by OneBlog. All Rights Reserved. + Gentelella - Bootstrap Admin Template by Colorlib
    @@ -263,4 +263,83 @@
+ + +<#-- 网站首页的项目介绍内容 --> +<#macro aboutOneBlog> + \ No newline at end of file diff --git a/blog-admin/src/main/resources/templates/index.ftl b/blog-admin/src/main/resources/templates/index.ftl index bcc037314437c85aff6b77c873266d2fd60e2865..502b78faba77563f40bcaf79455425fe4672aa4e 100644 --- a/blog-admin/src/main/resources/templates/index.ftl +++ b/blog-admin/src/main/resources/templates/index.ftl @@ -63,42 +63,13 @@ float: left; text-align: right; } + .notice-box li{ + line-height: 25px; + } - +<#-- 网站首页的项目介绍内容 --> +<@aboutOneBlog>
<#-- 文章 --> diff --git a/blog-admin/src/main/resources/templates/login.ftl b/blog-admin/src/main/resources/templates/login.ftl index c93e0d3d85b5c218fd27dac7e21988da238ebe7c..ce72aa33231035f9e6b42b94c3b35484b9a29e41 100644 --- a/blog-admin/src/main/resources/templates/login.ftl +++ b/blog-admin/src/main/resources/templates/login.ftl @@ -59,8 +59,7 @@
-

${config.siteName}管理系统

-

Copyright © 2018 yadong.zhang. All Rights Reserved.

+ Gentelella - Bootstrap Admin Template by Colorlib
diff --git a/blog-web/src/main/resources/static/js/zhyd.js b/blog-web/src/main/resources/static/js/zhyd.js index d5876daa23dfc9d84224d369c1893286f5173bf8..f22ace42509fce941792d6910ab24ce382e39f0d 100644 --- a/blog-web/src/main/resources/static/js/zhyd.js +++ b/blog-web/src/main/resources/static/js/zhyd.js @@ -337,16 +337,18 @@ $(function () { }); /* 图片懒加载 */ - $("img.lazy-img").lazyload({ - placeholder: appConfig.staticPath + "/img/loading.gif", - effect: "fadeIn", - threshold: 100 - }); - $(window).bind("load", function () { - var timeout = setTimeout(function () { - $("img.lazy-img").trigger("sporty"); - }, 3000); - }); + if(appConfig.lazyloadPath) { + $("img.lazy-img").lazyload({ + placeholder: appConfig.lazyloadPath, + effect: "fadeIn", + threshold: 100 + }); + $(window).bind("load", function () { + var timeout = setTimeout(function () { + $("img.lazy-img").trigger("sporty"); + }, 3000); + }); + } /* 热门搜索标签点击事件 */ $(".search-hot li").click(function () { diff --git a/blog-web/src/main/resources/templates/layout/footer.ftl b/blog-web/src/main/resources/templates/layout/footer.ftl index 42176c2d1b62d4caef027b6fdc267d71ffb11ff5..ce670cb81fc5f129a5e229f0d3965a9a58f63573 100644 --- a/blog-web/src/main/resources/templates/layout/footer.ftl +++ b/blog-web/src/main/resources/templates/layout/footer.ftl @@ -109,9 +109,6 @@

-

托管于阿里云 & 七牛云 · 鲁ICP备17054970号-1

-

Copyright © ${.now?string("yyyy")} zhyd.me All Rights Reserved | Powered by OneBlog

+

托管于阿里云 & 七牛云<#if config.recordNumber?if_exists> · ${config.recordNumber}

+

<#if config.copyright?if_exists>${config.copyright} | Powered by OneBlog

<#if url?exists && (url == "index")>