Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KongerBest committed May 4, 2020
2 parents 8c6a156 + 480b4ff commit 674a3c9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 52 deletions.
43 changes: 9 additions & 34 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ menu:
# site logo and footer quote
# 网站标志和页脚
# ====================================
logo: LiangYin
banner: img/background.jpg
logo: EYins
banner: https://cdn.jsdelivr.net/gh/LiangYin233/MyBlog@gh-pages/img/background.jpg
quote: "长风破浪会有时,直挂云帆济沧海。——李白" # Quote from a famous person or your favorite sentence 名人名言或自己喜欢的句子
post_footer:
copyright: "<p style='padding:none'>本文作者 LiangYin</p><p style='padding:none'>除非特殊标明,未经作者允许严禁转载!</p>" # 支持HTML语法
Expand All @@ -47,46 +47,20 @@ social:
# Valine comment system. https://valine.js.org
valine:
comment_name: 评论 # your comment area title 评论标题
enable: true # if you want use valine, please set this value to true 启用valine
enable: false # if you want use valine, please set this value to true 启用valine
app_id: # your leancloud appId
app_key: # your leancloud appKey
meta: nick,mail,link # 需填写项
requiredFields: nick,mail # 必填项
path:
placeholder: 来留言呀~ # Comment Box placeholder 占位符
avatar: 'mp' # 头像类型
pageSize: 8 # 评论显示页数
lang: zh-CN # 语言
enableQQ: true # 是否把qq号转换为qq昵称和头像
highlight: true # 代码高亮
recordIP: true # 记录评论者ip
emojiCDN: '' # 自定义表情前缀
emojiMaps: # 自定义表情列表
# 自定义表情范例
# emojiCDN: 'https://cdn.jsdelivr.net/gh/blogimg/'
# emojiMaps:
# bilibili_face_疑问: emotion/bilibili/face_疑问.png
# bilibili_face_再见: emotion/bilibili/face_再见.png
# bilibili_face_拥抱: emotion/bilibili/face_拥抱.png
# bilibili_face_武汉加油: emotion/bilibili/face_武汉加油.png
# bilibili_face_无奈: emotion/bilibili/face_无奈.png
# bilibili_face_微微笑: emotion/bilibili/face_微微笑.png
# bilibili_face_思考: emotion/bilibili/face_思考.png
# bilibili_face_期待: emotion/bilibili/face_期待.png
# bilibili_face_撇嘴: emotion/bilibili/face_撇嘴.png
# bilibili_face_难过: emotion/bilibili/face_难过.png
# bilibili_face_脸红: emotion/bilibili/face_脸红.png
# bilibili_face_酷: emotion/bilibili/face_酷.png

# 更多自定义配置详见 https://valine.js.org
app_key: # your leancloud appKey
placeholder: 来留言呀~ # Comment Box placeholder 占位符
pageSize: 8 # 评论显示页数
enableQQ: true # 是否把qq号转换为qq昵称和头像

#disqus
disqus_shortname:

# 第三方统计/收录服务
analytics:
baidu: # Your APPID
tencent: # Your APPID
tencent: 500718604 # Your APPID
google: # Your ID
baidu_sitemap: true # Not "empty" means active.
# ==================================
Expand All @@ -95,3 +69,4 @@ analytics:
# 优化
# ==================================
meta_head: "" # For analytics platform meta-head validation 用于分析平台meta头验证

24 changes: 6 additions & 18 deletions layout/_thirdParty/valine.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,12 @@
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>

<script>
var GUEST_INFO = ['nick','mail','link'];
var guest_info = '<%= theme.comments.valine.guest_info %>'.split(',').filter(function(item){
return GUEST_INFO.indexOf(item) > -1
});
var notify = '<%= theme.comments.notify %>' === 'true';
var verify = '<%= theme.comments.verify %>' === 'true';
new Valine({
el: '#valine_container',
notify: notify,
verify: verify,
appId: "<%= theme.comments.valine.app_id %>",
appKey: "<%= theme.comments.valine.app_key %>",
placeholder: "<%= theme.comments.valine.placeholder %>",
meta: guest_info,
pageSize: '<%= theme.comments.valine.pageSize %>',
avatar: '<%= theme.comments.valine.avatar %>',
lang: '<%= theme.comments.valine.lang %>',
guest_info: guest_info,
enableQQ: '<%= theme.comments.valine.enableQQ %>',
el: '#valine_comments',
appId: "<%= theme.valine.app_id %>",
appKey: "<%= theme.valine.app_key %>",
placeholder: "<%= theme.valine.placeholder %>",
pageSize: '<%= theme.valine.pageSize %>',
enableQQ: '<%= theme.valine.enableQQ %>'
});
</script>

0 comments on commit 674a3c9

Please sign in to comment.