mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 20:30:53 +08:00
✨ feat: 增加頁面加載動畫preloader close #193 ✨ feat: 適配hexo-generator-indexed插件 ✨ feat: aside subtitle可配置,優先顯示配置內容、沒有的顯示頁面subtitle close #191 ✨ feat: aside card-tags可配置是否顯示顏色 ✨ feat: algolia-search highligh文字加深 ✨ feat: 增加頁面keywords設置 #191 ✨ feat: darkmode和readmode配色微調 🐛 fix: 修復hide-block 配置顏色顯示出錯的bug 🐛 fix: 修正zh-TW部分用語
22 lines
704 B
Plaintext
22 lines
704 B
Plaintext
#vcomment.vcomment
|
|
script(src=url_for(theme.CDN.valine))
|
|
script.
|
|
var GUEST_INFO = ['nick','mail','link'];
|
|
var guest_info = '#{ theme.valine.guest_info }'.split(',').filter(function(item){
|
|
return GUEST_INFO.indexOf(item) > -1
|
|
});
|
|
guest_info = guest_info.length == 0 ? GUEST_INFO :guest_info;
|
|
|
|
window.valine = new Valine({
|
|
el:'#vcomment',
|
|
appId: '#{theme.valine.appId}',
|
|
appKey: '#{theme.valine.appKey}',
|
|
placeholder: '#{theme.valine.placeholder}',
|
|
avatar: '#{theme.valine.avatar}',
|
|
meta: guest_info,
|
|
pageSize: '#{theme.valine.pageSize}',
|
|
lang: '#{theme.valine.lang}',
|
|
recordIP: #{theme.valine.recordIP},
|
|
serverURLs: '#{theme.valine.serverURLs}'
|
|
});
|