🐛 修復POST-META關閉閲讀分鐘和訪問量後,評論量前有分割線的bug

🐛 修復canvas_ribbon透明度變為1再變回預設值bug
🐛 修復當default_cover沒設置時,會出現無圖片的bug
🎨 部分js調整
This commit is contained in:
Jerry committed 2020-04-02 22:16:01 +08:00
1 parent 5e37ab641a
commit eb11e4afeb
18 files changed
+427 -309

No files matched your search

+2 -3
View File
@@ -17,7 +17,6 @@ html(lang=config.language data-theme=theme.display_mode)
h1#error_title= '404'
#error_subtitle= theme.error_404.subtitle
include includes/rightside.pug
include includes/search/index.pug
each item in theme.CDN_USE.js
script(src=url_for(item))
!=partial('includes/search/index', {}, {cache:theme.fragment_cache})
!=fragment_cache('my_js', function(){return my_html('js',theme.CDN_USE.js)})
include includes/additional-js.pug
+3 -3
View File
@@ -62,21 +62,21 @@
span.post-meta-commentcount
- var commentCount = theme.fontawesome_v5 && theme.fontawesome_v5.enable ? 'far fa-comments' : 'fa fa-comment-o'
if ((theme.disqus && theme.disqus.enable && theme.disqus.count && page.comments !== false) || (theme.disqusjs && theme.disqusjs.enable && theme.disqusjs.count && page.comments !== false))
if (theme.busuanzi && theme.busuanzi.page_pv)
if (postWordcount || theme.busuanzi.page_pv)
span.post-meta__separator |
i.post-meta__icon(class=commentCount aria-hidden="true")
span= _p('post.comments') + ':'
span.disqus-comment-count.comment-count
a(href=full_url_for(page.path) + '#disqus_thread')
else if (theme.valine && theme.valine.enable && theme.valine.count && page.comments !== false)
if (theme.busuanzi && theme.busuanzi.page_pv)
if (postWordcount || theme.busuanzi.page_pv)
span.post-meta__separator |
i.post-meta__icon(class=commentCount aria-hidden="true")
span= _p('post.comments') + ':'
a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl")
span.valine-comment-count.comment-count(data-xid=url_for(page.path) itemprop="commentCount")
else if (theme.gitalk && theme.gitalk.enable && theme.gitalk.count && page.comments !== false)
if (theme.busuanzi && theme.busuanzi.page_pv)
if (postWordcount || theme.busuanzi.page_pv)
span.post-meta__separator |
i.post-meta__icon(class=commentCount aria-hidden="true")
span= _p('post.comments') + ':'
+9 -2
View File
@@ -1,8 +1,15 @@
hexo.extend.generator.register('404', function(locals){
/**
* Butterfly
* 404 error page
*/
'use strict'
hexo.extend.generator.register('404', function (locals) {
if (!hexo.theme.config.error_404.enable) return
return {
path: '404.html',
data: locals.posts,
layout: ['404']
}
});
})
Loaded 3 of 18 files, more files were not shown because too many files have changed in this diff. Show more