Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
智布道
OneBlog
提交
75293e97
O
OneBlog
项目概览
智布道
/
OneBlog
9 个月 前同步成功
通知
11
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OneBlog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
75293e97
编写于
6月 26, 2019
作者:
智布道
👁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🐛
修复部分问题,版权、备案号、懒加载图片支持自定义配置。具体修改内容查看update.md
上级
e04382a3
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
162 addition
and
82 deletion
+162
-82
README.md
README.md
+14
-13
blog-admin/src/main/resources/templates/config.ftl
blog-admin/src/main/resources/templates/config.ftl
+38
-16
blog-admin/src/main/resources/templates/include/macros.ftl
blog-admin/src/main/resources/templates/include/macros.ftl
+80
-1
blog-admin/src/main/resources/templates/index.ftl
blog-admin/src/main/resources/templates/index.ftl
+5
-34
blog-admin/src/main/resources/templates/login.ftl
blog-admin/src/main/resources/templates/login.ftl
+1
-2
blog-web/src/main/resources/static/js/zhyd.js
blog-web/src/main/resources/static/js/zhyd.js
+12
-10
blog-web/src/main/resources/templates/layout/footer.ftl
blog-web/src/main/resources/templates/layout/footer.ftl
+3
-5
pom.xml
pom.xml
+1
-1
update.md
update.md
+8
-0
未找到文件。
README.md
浏览文件 @
75293e97
...
...
@@ -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项目为例)
...
...
blog-admin/src/main/resources/templates/config.ftl
浏览文件 @
75293e97
...
...
@@ -52,45 +52,66 @@
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="siteDesc">站点简介 <i class="fa fa-question-circle" title="一句话简介"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="siteDesc" id="siteDesc" required="required" placeholder="
请输入站点
简介"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="siteDesc" id="siteDesc" required="required" placeholder="
一句话
简介"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="domain">主域名 <i class="fa fa-question-circle" title="例如:https://www.zhyd.me的主域名就是zhyd.me"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="domain" id="domain" required="required" placeholder="
请输入网站主域名
: zhyd.me"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="domain" id="domain" required="required" placeholder="
例如
: zhyd.me"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="siteUrl">博客地址 <i class="fa fa-question-circle" title="博客前台地址,例如: http://localhost:8443"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="siteUrl" id="siteUrl" required="required" placeholder="
请输入博客地址
"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="siteUrl" id="siteUrl" required="required" placeholder="
例如: http://localhost:8443
"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="siteFavicon">站点图标
<i class="fa fa-question-circle" title="favicon,浏览器标签网站标题左侧的图标"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="siteFavicon" id="siteFavicon" required="required" placeholder="
请输入站点LOGO,
如:http://localhost:8443/favicon.ico"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="siteFavicon" id="siteFavicon" required="required" placeholder="
例
如:http://localhost:8443/favicon.ico"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="staticWebSite">资源文件域名
<i class="fa fa-question-circle" title="js、css、img等文件的域名地址,如果是在本项目内,则与“博客地址”设置一样即可"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="staticWebSite" id="staticWebSite" required="required" placeholder="
请输入资源文件域名,
如:http://localhost:8443"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="staticWebSite" id="staticWebSite" required="required" placeholder="
例
如:http://localhost:8443"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="staticWebSite">
CMS后管
系统地址
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="staticWebSite">
管理
系统地址
<i class="fa fa-question-circle" title="博客后台管理系统的地址,例如: http://localhost:8085"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="cmsUrl" id="cmsUrl" required="required" placeholder="
请输入CMS后管系统地址,
例如: http://localhost:8085"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="cmsUrl" id="cmsUrl" required="required" placeholder="例如: http://localhost:8085"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="installdate">系统安装日期
<i class="fa fa-question-circle" title="用于前台计算运行天数"></i> <span class="required">*</span></label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="copyright">版权信息
<i class="fa fa-question-circle" title="网站版权信息"></i> </label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="copyright" id="copyright" placeholder="例如:Copyright © ${.now?string("yyyy")} zhyd.me All Rights Reserved"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="copyright">网站备案号
<i class="fa fa-question-circle" title="网站备案号"></i> </label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="recordNumber" id="recordNumber" placeholder="例如:鲁ICP备17054970号-1"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="lazyloadPath">懒加载图片
<i class="fa fa-question-circle" title="用于前台网站中对图片进行懒加载显示"></i> </label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="lazyloadPath" id="lazyloadPath" placeholder="例如:${config.staticWebSite}/img/loading.gif"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="installdate">博客安装日期
<i class="fa fa-question-circle" title="用于前台计算系统运行天数"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class='input-group date myDatepicker'>
<input type='text' class="form-control" readonly="readonly" id="installdate" name="installdate" required="required" placeholder="请选择系统安装日期"/>
...
...
@@ -111,19 +132,19 @@
<div role="tabpanel" class="tab-pane fade" id="tab_seo" aria-labelledby="seo-tab">
<form class="form-horizontal form-label-left" novalidate>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="siteName">
Title
<i class="fa fa-question-circle" title="百度白皮书推荐的格式:关键词1_关键词2_关键词3_关键词4-品牌词"></i> <span class="required">*</span></label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="siteName">
首页标题
<i class="fa fa-question-circle" title="百度白皮书推荐的格式:关键词1_关键词2_关键词3_关键词4-品牌词"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="siteName" id="siteName" required="required" placeholder="请输入站点名"/>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="homeDesc">
Description
<i class="fa fa-question-circle" title="对keywords进行扩展描述,100~130字左右即可"></i> <span class="required">*</span></label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="homeDesc">
META描述
<i class="fa fa-question-circle" title="对keywords进行扩展描述,100~130字左右即可"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea class="form-control col-md-7 col-xs-12" id="homeDesc" name="homeDesc" required="required" placeholder="请输入首页描述" rows="5"></textarea>
</div>
</div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="homeKeywords">
Keywords
<i class="fa fa-question-circle" title="网站关键字,半角逗号分割,不建议多,贴合网站主题"></i> <span class="required">*</span></label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="homeKeywords">
META关键词
<i class="fa fa-question-circle" title="网站关键字,半角逗号分割,不建议多,贴合网站主题"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea class="form-control col-md-7 col-xs-12" id="homeKeywords" name="homeKeywords" required="required" placeholder="请输入首页关键字(半角逗号分隔)" rows="5"></textarea>
</div>
...
...
@@ -131,7 +152,7 @@
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="baiduPushToken">百度推送Token <i class="fa fa-question-circle" title="方便百度引擎快速收录"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="baiduPushToken" id="baiduPushToken" required="required" placeholder="请输入百度推送Token"/>
<input type="text" class="form-control col-md-7 col-xs-12" name="baiduPushToken" id="baiduPushToken" required="required" placeholder="请输入百度推送Token
,推送功能能加快百度搜索引擎对博文的索引速度
"/>
</div>
</div>
<div class="item form-group">
...
...
@@ -143,7 +164,7 @@
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="baiduPushCookie">百度推送Cookie <i class="fa fa-question-circle" title="请求API使用"></i> <span class="required">*</span></label>
<div class="col-md-6 col-sm-6 col-xs-12">
<
input type="text" class="form-control col-md-7 col-xs-12" name="baiduPushCookie" id="baiduPushCookie" required="required" placeholder="请输入百度推送Cookie"/
>
<
textarea class="form-control col-md-7 col-xs-12" name="baiduPushCookie" id="baiduPushCookie" required="required" placeholder="请输入百度推送Cookie" rows="5"></textarea
>
</div>
</div>
<div class="item">
...
...
@@ -437,7 +458,7 @@
<div role="tabpanel" class="tab-pane fade" id="tab_setting" aria-labelledby="setting-tab">
<form class="form-horizontal form-label-left" novalidate>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="authorName">百度Api的AK</label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="authorName">百度Api的AK
<i class="fa fa-question-circle" title="用于通过百度地址接口获取用户当前的位置"></i>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" class="form-control col-md-7 col-xs-12" name="baiduApiAk" id="baiduApiAk" placeholder="请输入百度Api的AK"/>
</div>
...
...
@@ -450,7 +471,8 @@
</div>
<div class="clear"></div>
<div class="item form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="maintenance">维护通知</label>
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="maintenance">维护通知
<i class="fa fa-question-circle" title="网站在更新前, 可以通过开启该功能,通知用户"></i> </label>
<div class="col-md-6 col-sm-6 col-xs-12 fixed-radio-checkbox">
<ul class="list-unstyled list-inline">
<li><label for="maintenance" class="pointer"> <input type="radio" class="square" checked name="maintenance" value="1"> 显示 </label> </li>
...
...
blog-admin/src/main/resources/templates/include/macros.ftl
浏览文件 @
75293e97
...
...
@@ -71,7 +71,7 @@
<
#if
footerHtml
>
<footer>
<div
class=
"pull-right"
>
Copyright © 2018-${.now?string('yyyy')}
<a
href=
"https://www.zhyd.me"
target=
"_blank"
>
yadong.zhang
</a>
· Powered by
<a
href=
"https://gitee.com/yadong.zhang/DBlog"
title=
"OneBlog是一款简洁美观、自适应的Java博客系统..."
target=
"_blank"
><strong>
OneBlog
</strong></a>
. All Rights Reserved.
Gentelella - Bootstrap Admin Template by
<a
href=
"https://colorlib.com"
>
Colorlib
</a>
</div>
<div
class=
"clearfix"
></div>
</footer>
...
...
@@ -263,4 +263,83 @@
</div>
</div>
</div>
</
#
macro>
<
#--
网站首页的项目介绍内容
--
>
<
#macro
aboutOneBlog
>
<div
class=
"modal fade"
id=
"noticeModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel2"
>
<div
class=
"modal-dialog modal-lg"
role=
"document"
style=
"width: 70%;"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
<h4
class=
"modal-title"
id=
"myModalLabel2"
>
关于OneBlog - 一个简洁美观、功能强大并且自适应的Java博客
</h4>
</div>
<div
class=
"modal-body notice-box"
>
<div
class=
"row"
>
<div
class=
"col col-lg-4 col-sm-4 col-md-4 col-xs-4"
>
<fieldset>
<legend>
关注公众号
</legend>
<a
href=
"https://gitee.com/yadong.zhang/static/raw/master/wx/wechat_account_500x500.jpg"
class=
"showImage"
title=
"关注公众号:码一码"
rel=
"external nofollow"
style=
"display: block;text-align: center"
>
<img
src=
"https://gitee.com/yadong.zhang/static/raw/master/wx/wechat_account_500x500.jpg"
class=
"img-rounded"
alt=
"关注公众号:码一码"
width=
"300"
>
</a>
</fieldset>
</div>
<div
class=
"col col-lg-4 col-sm-4 col-md-4 col-xs-4"
>
<fieldset>
<legend>
关于OneBlog
</legend>
<h2>
项目相关
</h2>
<ul>
<li>
开源项目地址①:
<a
href=
"https://gitee.com/yadong.zhang/DBlog"
target=
"_blank"
>
https://gitee.com/yadong.zhang/DBlog
</a></li>
<li>
开源项目地址②:
<a
href=
"https://github.com/zhangyd-c/OneBlog"
target=
"_blank"
>
https://github.com/zhangyd-c/OneBlog
</a></li>
<li>
博主网站首页:
<a
href=
"https://www.zhyd.me"
target=
"_blank"
>
https://www.zhyd.me
</a></li>
</ul>
<h2>
Demo演示
</h2>
<ul>
<li><a
href=
"http://dblog-admin.zhyd.me"
target=
"_blank"
>
后台
</a>
:用户名:root,密码:123456
</li>
<li><a
href=
"http://dblog-web.zhyd.me"
target=
"_blank"
>
前台
</a></li>
</ul>
<h2>
获取帮助
</h2>
<ul>
<li>
相关Wiki:
<a
href=
"https://gitee.com/yadong.zhang/DBlog/wikis"
target=
"_blank"
>
https://gitee.com/yadong.zhang/DBlog/wikis
</a></li>
<li>
提issue:
<a
href=
"https://gitee.com/yadong.zhang/DBlog/issues"
target=
"_blank"
>
https://gitee.com/yadong.zhang/DBlog/issues
</a></li>
<li>
留言:
<a
href=
"https://www.zhyd.me/guestbook"
target=
"_blank"
>
https://www.zhyd.me/guestbook
</a></li>
<li>
加QQ群:
<a
href=
"http://shang.qq.com/wpa/qunwpa?idkey=9f986e9b33b1de953e1ef9a96cdeec990affd0ac7855e00ff103514de2027b60"
target=
"_blank"
>
190886500
</a></li>
</ul>
<h2>
其他开源作品
</h2>
<ul>
<li><a
href=
"https://gitee.com/yadong.zhang/JustAuth"
target=
"_blank"
>
JustAuth
</a>
:史上最全的整合第三方登录的工具,目前已支持Github、Gitee、微博、钉钉、百度、Coding、腾讯云开发者平台、OSChina、支付宝、QQ、微信、淘宝、Google、Facebook、抖音、领英、小米、微软和今日头条等第三方平台的授权登录。 Login, so easy!
</li>
<li><a
href=
"https://gitee.com/yadong.zhang/blog-hunter"
target=
"_blank"
>
blog-hunter
</a>
:博客猎手,基于webMagic的博客爬取工具,支持慕课、csdn、iteye、cnblogs、掘金和V2EX等各大主流博客平台。博客千万篇,版权第一条。狩猎不规范,亲人两行泪。
</li>
<li><a
href=
"https://gitee.com/yadong.zhang/shiro"
target=
"_blank"
>
springboot-shiro
</a>
:Springboot + shiro权限管理。这或许是流程最详细、代码最干净、配置最简单的shiro上手项目了。
</li>
<li><a
href=
"https://gitee.com/yadong.zhang"
target=
"_blank"
>
查看更多...
</a></li>
</ul>
</fieldset>
</div>
<div
class=
"col col-lg-4 col-sm-4 col-md-4 col-xs-4"
>
<fieldset>
<legend>
支持的功能
</legend>
<ul>
<li><span><span><strong>
多种编辑器
</strong>
:支持wangEditor和Markdown两种富文本编辑器,可以自行选择
</span></span></li>
<li><span><span><strong>
自动申请友情链接
</strong>
:在线申请友情链接,无需站长手动配置,只需申请方添加完站长的连接后自行申请即可
</span></span></li>
<li><span><span><strong>
百度推送
</strong>
:支持百度推送功能,加速百度搜索引擎收录博文
</span></span></li>
<li><span><span><strong>
评论系统
</strong>
:自研的评论系统,支持显示用户地址、浏览器和os信息,后台可审核评论、开启匿名评论、回复和邮件通知评论
</span></span></li>
<li><span><span><strong>
权限管理
</strong>
:后台配备完善的权限管理
</span></span></li>
<li><span><span><strong>
SEO
</strong>
:自带robots、sitemap等seo模板,实现自动生成robots和sitemap
</span></span></li>
<li><span><span><strong>
实时通讯
</strong>
:管理员可向在线的用户发送实时消息(需用户授权 - 基于websocket实现,具体参考
<a
href=
"https://www.zhyd.me/article/111"
>
DBlog建站之Websocket的使用
</a>
)
</span></span></li>
<li><span><span><strong>
系统配置支持快速配置
</strong>
:可通过后台手动修改诸如域名信息、SEO优化、赞赏码、七牛云以及更新维护通知等
</span></span></li>
<li><span><span><strong><i
class=
"fa fa-fire fa-fw red"
></i>
多种文件存储
</strong>
:集成七牛云、阿里云OSS,实现文件云存储,同时支持本地文件存储
</span></span></li>
<li><span><span><strong><i
class=
"fa fa-fire fa-fw red"
></i>
文件搬运工
</strong>
:集成
<a
href=
"https://gitee.com/yadong.zhang/blog-hunter"
>
blog-hunter
</a>
实现“文章搬运工”功能,支持一键同步imooc、csdn、iteye或者cnblogs上的文章,可抓取列表和单个文章
</span></span></li>
<li><span><span><strong><i
class=
"fa fa-fire fa-fw red"
></i>
第三方授权登录
</strong>
:集成
<a
href=
"https://gitee.com/yadong.zhang/JustAuth"
>
JustAuth
</a>
实现第三方授权登录
</span></span></li>
</ul>
</fieldset></div>
</div>
</div>
<div
class=
"modal-footer"
>
<span
class=
"pull-left"
>
tips: 如不想显示该弹窗,可在
<code>
index.ftl
</code>
中搜索
<code>
noticeModal
</code>
后删掉相关代码
</span>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
><i
class=
"fa fa-close"
>
关闭
</i></button>
</div>
</div>
</div>
</div>
</
#
macro>
\ No newline at end of file
blog-admin/src/main/resources/templates/index.ftl
浏览文件 @
75293e97
...
...
@@ -63,42 +63,13 @@
float: left;
text-align: right;
}
.notice-box li{
line-height: 25px;
}
</style>
</@header>
<div class="modal fade" id="noticeModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel2">关于${config.siteName}</h4>
</div>
<div class="modal-body notice-box">
<h2>项目相关</h2>
<ul>
<li>开源项目地址:<a href="https://gitee.com/yadong.zhang/DBlog" target="_blank">https://gitee.com/yadong.zhang/DBlog</a></li>
<li>博主网站首页:<a href="https://www.zhyd.me" target="_blank">https://www.zhyd.me</a></li>
</ul>
<h2>获取帮助</h2>
<ul>
<li class="red h4"><i class="fa fa-fire"></i>在线文档:<a href="http://dblog-docs.zhyd.me/" target="_blank">http://dblog-docs.zhyd.me/</a></li>
<li>相关Wiki:<a href="https://gitee.com/yadong.zhang/DBlog/wikis" target="_blank">https://gitee.com/yadong.zhang/DBlog/wikis</a></li>
<li>提issue:<a href="https://gitee.com/yadong.zhang/DBlog/issues" target="_blank">https://gitee.com/yadong.zhang/DBlog/issues</a></li>
<li>留言:<a href="https://www.zhyd.me/guestbook" target="_blank">https://www.zhyd.me/guestbook</a></li>
<li>加QQ群:<a href="http://shang.qq.com/wpa/qunwpa?idkey=9f986e9b33b1de953e1ef9a96cdeec990affd0ac7855e00ff103514de2027b60" target="_blank">190886500</a></li>
</ul>
<h2>关注公众号</h2>
<a href="https://gitee.com/yadong.zhang/static/raw/master/wx/wechat_account.jpg" class="showImage" title="关注公众号:码一码" rel="external nofollow">
<img src="https://gitee.com/yadong.zhang/static/raw/master/wx/wechat_account.jpg" class="img-rounded" alt="关注公众号:码一码" width="150">
</a>
</div>
<div class="modal-footer">
<span class="pull-left">tips: 如不想显示该弹窗,可在 <code>index.ftl</code> 中搜索 <code>noticeModal</code> 后删掉相关代码</span>
<button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-close"> 关闭</i></button>
</div>
</div>
</div>
</div>
<#-- 网站首页的项目介绍内容 -->
<@aboutOneBlog></@aboutOneBlog>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 top_tiles">
<#-- 文章 -->
...
...
blog-admin/src/main/resources/templates/login.ftl
浏览文件 @
75293e97
...
...
@@ -59,8 +59,7 @@
<div
class=
"separator"
>
<div
class=
"clearfix"
></div>
<div>
<h1><i
class=
"fa fa-coffee"
></i>
${config.siteName}管理系统
</h1>
<p>
Copyright © 2018
<a
href=
"https://www.zhyd.me"
target=
"_blank"
style=
"margin: 0"
>
yadong.zhang
</a>
. All Rights Reserved.
</p>
Gentelella - Bootstrap Admin Template by
<a
href=
"https://colorlib.com"
>
Colorlib
</a>
</div>
</div>
</form>
...
...
blog-web/src/main/resources/static/js/zhyd.js
浏览文件 @
75293e97
...
...
@@ -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
()
{
...
...
blog-web/src/main/resources/templates/layout/footer.ftl
浏览文件 @
75293e97
...
...
@@ -109,9 +109,6 @@
<p>
<ul class="list-unstyled list-inline">
<li>其他连接:</li>
<li><a href="http://shang.qq.com/wpa/qunwpa?idkey=9f986e9b33b1de953e1ef9a96cdeec990affd0ac7855e00ff103514de2027b60" target="_blank" title="加入我的QQ交流群:190886500" data-toggle="tooltip" data-placement="bottom" rel="external nofollow"><i class="fa fa-qq"></i>QQ交流群</a></li>
<li><a href="https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=wylo59db" target="_blank" title="史上最全的阿里云优惠券" data-toggle="tooltip" data-placement="bottom" rel="external nofollow"><i class="fa fa-fire fa-fw"></i>阿里云券</a></li>
<li><a href="https://mi.aliyun.com/shop/19462" target="_blank" title="闲置域名出售" data-toggle="tooltip" data-placement="bottom" rel="external nofollow"><i class="fa fa-globe fa-fw fa-spin"></i>域名出售</a></li>
<li><a href="${config.siteUrl}/sitemap.html" target="_blank" title="网站地图" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-map-o fa-fw"></i>网站地图</a></li>
<li><a href="${config.siteUrl}/recommended" title="站长推荐" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-thumbs-o-up fa-fw"></i>站长推荐</a></li>
<li><a href="${config.siteUrl}/updateLog" title="更新记录" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-file-o fa-fw"></i>更新记录</a></li>
...
...
@@ -119,8 +116,8 @@
<li><a href="${config.siteUrl}/disclaimer" title="免责声明" data-toggle="tooltip" data-placement="bottom"><i class="fa fa-file-o fa-fw"></i>免责声明</a></li>
</ul>
</p>
<p>托管于<a href="https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=wylo59db" target="_blank" title="阿里云-为了无法计算的价值" data-toggle="tooltip" data-placement="bottom" rel="external nofollow">阿里云</a> & <a href="https://portal.qiniu.com/signup?code=3l8yx2v0f21ci" target="_blank" title="七牛云-国内领先的企业级云服务商" data-toggle="tooltip" data-placement="bottom" rel="external nofollow">七牛云</a>
· <a href="http://www.miitbeian.gov.cn/publish/query/indexFirst.action" target="_blank" title="查看备案信息" data-toggle="tooltip" data-placement="bottom" rel="external nofollow">鲁ICP备17054970号-1</a
></p>
<p>
Copyright © ${.now?string("yyyy")} zhyd.me All Rights Reserved | Powered by <a href="https://gitee.com/yadong.zhang/DBlog" title="OneBlog是一款简洁美观、自适应的Java博客系统..." data-toggle="tooltip" data-placement="right" target="_blank">OneBlog
</a> </p>
<p>托管于<a href="https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=wylo59db" target="_blank" title="阿里云-为了无法计算的价值" data-toggle="tooltip" data-placement="bottom" rel="external nofollow">阿里云</a> & <a href="https://portal.qiniu.com/signup?code=3l8yx2v0f21ci" target="_blank" title="七牛云-国内领先的企业级云服务商" data-toggle="tooltip" data-placement="bottom" rel="external nofollow">七牛云</a>
<#if config.recordNumber?if_exists> · <a href="http://www.miitbeian.gov.cn/publish/query/indexFirst.action" target="_blank" title="查看备案信息" data-toggle="tooltip" data-placement="bottom" rel="external nofollow">${config.recordNumber}</a></#if
></p>
<p>
<#if config.copyright?if_exists>${config.copyright} |</#if> Powered by <a href="https://gitee.com/yadong.zhang/DBlog" title="OneBlog是一款简洁美观、自适应的Java博客系统..." data-toggle="tooltip" data-placement="right" target="_blank"><i>OneBlog</i>
</a> </p>
<#if url?exists && (url == "index")>
<div class="inline external-links">
<a>友情链接:</a>
...
...
@@ -157,6 +154,7 @@
wwwPath: '${config.siteUrl}',
cmsPath: '${config.cmsUrl}',
staticPath: '${config.staticWebSite}',
lazyloadPath: '${config.lazyloadPath}',
fileStoragePath: '${config.fileStoragePath}',
wxPraiseCode: '${config.wxPraiseCode}',
zfbPraiseCode: '${config.zfbPraiseCode}',
...
...
pom.xml
浏览文件 @
75293e97
...
...
@@ -5,7 +5,7 @@
<groupId>
com.zyd
</groupId>
<artifactId>
blog
</artifactId>
<version>
2.2.
1
</version>
<version>
2.2.
2
</version>
<packaging>
pom
</packaging>
<modules>
<module>
blog-core
</module>
...
...
update.md
浏览文件 @
75293e97
# 更新日志
----
### 2019-06-26
1.
修复部分BUG
2.
网站版权信息、备案号、懒加载图片支持后台配置,无需手动修改页面信息
3.
去掉前台项目种一些无用的链接
----
### 2019-06-01
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录