修改配置

This commit is contained in:
江志雄 2018-07-13 20:19:05 +08:00
parent 470a4bdd9c
commit 85fe298c7c
6 changed files with 32 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ scheme: Paradox
# UI & UX: slogan, color, effect
uiux:
slogan: "对的,坚持!错的,放弃"
slogan: "爱音乐!爱生活"
theme_color: "#77546f"
theme_sub_color: ""
hyperlink_color: "#679cc5"
@ -164,23 +164,23 @@ sidebar:
pages:
时间轴:
link: "/timeline"
icon: person
icon: schedule
divider: true
标签:
link: "/tags"
icon: person
icon: label
divider: false
图库:
link: "/gallery"
icon: person
icon: class
divider: false
我的足迹:
link: "/footprint"
icon: person
icon: flight_takeoff
divider: true
About:
link: "/about"
icon: person
icon: face
divider: false
article_num:
use: true

View File

@ -22,7 +22,7 @@
<div class="mdl-mini-footer--right-section">
<div>
<div class="footer-develop-div">Powered by <a href="https://hexo.io" target="_blank" class="footer-develop-a">Hexo</a></div>
<div class="footer-develop-div">Theme - <a href="https://github.com/viosey/hexo-theme-material" target="_blank" class="footer-develop-a">Material</a></div>
<!-- <div class="footer-develop-div">Theme - <a href="https://github.com/viosey/hexo-theme-material" target="_blank" class="footer-develop-a">Material</a></div> -->
</div>
</div>
<% } %>

View File

@ -0,0 +1,2 @@
<div id="comment" style='padding:10px;' class="vcomment"></div>
<%- partial('_widget/comment/' + theme.comment.use + '/main') %>

View File

@ -0,0 +1,22 @@
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src="//unpkg.com/valine/dist/Valine.min.js"></script>
<script>
var GUEST_INFO = ['nick','mail','link'];
var guest_info = '<%= theme.comment.valine_guest_info %>'.split(',').filter(function(item){
return GUEST_INFO.indexOf(item) > -1
});
var notify = '<%= theme.comment.valine_notify %>' == true;
var verify = '<%= theme.comment.valine_verify %>' == true;
new Valine({
el: '.vcomment',
notify: notify,
verify: verify,
appId: "<%= theme.comment.valine_leancloud_appId %>",
appKey: "<%= theme.comment.valine_leancloud_appKey %>",
placeholder: "<%= theme.comment.valine_placeholder %>",
pageSize:'<%= theme.comment.valine_pageSize %>',
avatar:'<%= theme.comment.valine_avatar %>',
lang:'<%= theme.comment.valine_lang %>',
guest_info: guest_info
});
</script>