mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
🐛 修復POST-META關閉閲讀分鐘和訪問量後,評論量前有分割線的bug
🐛 修復canvas_ribbon透明度變為1再變回預設值bug 🐛 修復當default_cover沒設置時,會出現無圖片的bug 🎨 部分js調整
This commit is contained in:
1 parent
5e37ab641a
commit
eb11e4afeb
18 files changed
+427
-309
No files matched your search
+2
-3
@@ -17,7 +17,6 @@ html(lang=config.language data-theme=theme.display_mode)
|
|||||||
h1#error_title= '404'
|
h1#error_title= '404'
|
||||||
#error_subtitle= theme.error_404.subtitle
|
#error_subtitle= theme.error_404.subtitle
|
||||||
include includes/rightside.pug
|
include includes/rightside.pug
|
||||||
include includes/search/index.pug
|
!=partial('includes/search/index', {}, {cache:theme.fragment_cache})
|
||||||
each item in theme.CDN_USE.js
|
!=fragment_cache('my_js', function(){return my_html('js',theme.CDN_USE.js)})
|
||||||
script(src=url_for(item))
|
|
||||||
include includes/additional-js.pug
|
include includes/additional-js.pug
|
||||||
@@ -62,21 +62,21 @@
|
|||||||
span.post-meta-commentcount
|
span.post-meta-commentcount
|
||||||
- var commentCount = theme.fontawesome_v5 && theme.fontawesome_v5.enable ? 'far fa-comments' : 'fa fa-comment-o'
|
- 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.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 |
|
span.post-meta__separator |
|
||||||
i.post-meta__icon(class=commentCount aria-hidden="true")
|
i.post-meta__icon(class=commentCount aria-hidden="true")
|
||||||
span= _p('post.comments') + ':'
|
span= _p('post.comments') + ':'
|
||||||
span.disqus-comment-count.comment-count
|
span.disqus-comment-count.comment-count
|
||||||
a(href=full_url_for(page.path) + '#disqus_thread')
|
a(href=full_url_for(page.path) + '#disqus_thread')
|
||||||
else if (theme.valine && theme.valine.enable && theme.valine.count && page.comments !== false)
|
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 |
|
span.post-meta__separator |
|
||||||
i.post-meta__icon(class=commentCount aria-hidden="true")
|
i.post-meta__icon(class=commentCount aria-hidden="true")
|
||||||
span= _p('post.comments') + ':'
|
span= _p('post.comments') + ':'
|
||||||
a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl")
|
a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl")
|
||||||
span.valine-comment-count.comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
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)
|
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 |
|
span.post-meta__separator |
|
||||||
i.post-meta__icon(class=commentCount aria-hidden="true")
|
i.post-meta__icon(class=commentCount aria-hidden="true")
|
||||||
span= _p('post.comments') + ':'
|
span= _p('post.comments') + ':'
|
||||||
|
|||||||
@@ -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
|
if (!hexo.theme.config.error_404.enable) return
|
||||||
return {
|
return {
|
||||||
path: '404.html',
|
path: '404.html',
|
||||||
data: locals.posts,
|
data: locals.posts,
|
||||||
layout: ['404']
|
layout: ['404']
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
Loaded 3 of 18 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user