mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
breaking changes: archives 隱藏 aside 設置更改
feat: tag 和 category 頁面可設置隱藏 aside feat: 子歸檔頁面顯示的文章數量不再顯示總文章數量,而是對應的子歸檔文章數量 feat: 為一些數據加載增加 loading 顯示 improvement: 修改 note 圖標 class 名字,避免第三方圖標覆蓋主題樣式
This commit is contained in:
1 parent
9a33e23a9c
commit
931a0ba82d
11 files changed
+104
-16
No files matched your search
+4
-1
@@ -628,7 +628,10 @@ aside:
|
|||||||
button: true
|
button: true
|
||||||
mobile: true # display on mobile
|
mobile: true # display on mobile
|
||||||
position: right # left or right
|
position: right # left or right
|
||||||
archives: true
|
display:
|
||||||
|
archive: true
|
||||||
|
tag: true
|
||||||
|
category: true
|
||||||
card_author:
|
card_author:
|
||||||
enable: true
|
enable: true
|
||||||
description:
|
description:
|
||||||
|
|||||||
+2
-1
@@ -3,6 +3,7 @@ extends includes/layout.pug
|
|||||||
block content
|
block content
|
||||||
include ./includes/mixins/article-sort.pug
|
include ./includes/mixins/article-sort.pug
|
||||||
#archive
|
#archive
|
||||||
.article-sort-title= _p('page.articles') + ' - ' + site.posts.length
|
- const archiveLength = findArchiveLength(fragment_cache)
|
||||||
|
.article-sort-title= _p('page.articles') + ' - ' + archiveLength
|
||||||
+articleSort(page.posts)
|
+articleSort(page.posts)
|
||||||
include includes/pagination.pug
|
include includes/pagination.pug
|
||||||
@@ -66,18 +66,23 @@
|
|||||||
if commentUse[0] === 'Valine' && theme.valine.visitor
|
if commentUse[0] === 'Valine' && theme.valine.visitor
|
||||||
+pvBlock(url_for(page.path),'leancloud_visitors',page.title)
|
+pvBlock(url_for(page.path),'leancloud_visitors',page.title)
|
||||||
span.leancloud-visitors-count
|
span.leancloud-visitors-count
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
else if commentUse[0] === 'Waline' && theme.waline.pageview
|
else if commentUse[0] === 'Waline' && theme.waline.pageview
|
||||||
+pvBlock('','','')
|
+pvBlock('','','')
|
||||||
span.waline-pageview-count(data-path=url_for(page.path))
|
span.waline-pageview-count(data-path=url_for(page.path))
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
else if commentUse[0] === 'Twikoo' && theme.twikoo.visitor
|
else if commentUse[0] === 'Twikoo' && theme.twikoo.visitor
|
||||||
+pvBlock('','','')
|
+pvBlock('','','')
|
||||||
span#twikoo_visitors
|
span#twikoo_visitors
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
else if theme.busuanzi.page_pv
|
else if theme.busuanzi.page_pv
|
||||||
+pvBlock('','post-meta-pv-cv','')
|
+pvBlock('','post-meta-pv-cv','')
|
||||||
span#busuanzi_value_page_pv
|
span#busuanzi_value_page_pv
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
else if theme.busuanzi.page_pv
|
else if theme.busuanzi.page_pv
|
||||||
+pvBlock('','post-meta-pv-cv','')
|
+pvBlock('','post-meta-pv-cv','')
|
||||||
span#busuanzi_value_page_pv
|
span#busuanzi_value_page_pv
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
|
|
||||||
if comments.count && !comments.lazyload && page.comments !== false && comments.use
|
if comments.count && !comments.lazyload && page.comments !== false && comments.use
|
||||||
- var whichCount = comments.use[0]
|
- var whichCount = comments.use[0]
|
||||||
@@ -95,31 +100,39 @@
|
|||||||
+countBlock
|
+countBlock
|
||||||
span.disqus-comment-count
|
span.disqus-comment-count
|
||||||
a(href=full_url_for(page.path) + '#disqus_thread')
|
a(href=full_url_for(page.path) + '#disqus_thread')
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Disqusjs'
|
when 'Disqusjs'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=full_url_for(page.path) + '#disqusjs')
|
a(href=full_url_for(page.path) + '#disqusjs')
|
||||||
span.disqus-comment-count(data-disqus-url=full_url_for(page.path))
|
span.disqus-comment-count(data-disqus-url=full_url_for(page.path))
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Valine'
|
when 'Valine'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl")
|
a(href=url_for(page.path) + '#post-comment' itemprop="discussionUrl")
|
||||||
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
span.valine-comment-count(data-xid=url_for(page.path) itemprop="commentCount")
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Waline'
|
when 'Waline'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment')
|
a(href=url_for(page.path) + '#post-comment')
|
||||||
span.waline-comment-count(data-path=url_for(page.path))
|
span.waline-comment-count(data-path=url_for(page.path))
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Gitalk'
|
when 'Gitalk'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment')
|
a(href=url_for(page.path) + '#post-comment')
|
||||||
span.gitalk-comment-count
|
span.gitalk-comment-count
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Twikoo'
|
when 'Twikoo'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment')
|
a(href=url_for(page.path) + '#post-comment')
|
||||||
span#twikoo-count
|
span#twikoo-count
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Facebook Comments'
|
when 'Facebook Comments'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment')
|
a(href=url_for(page.path) + '#post-comment')
|
||||||
span.fb-comments-count(data-href=urlNoIndex())
|
span.fb-comments-count(data-href=urlNoIndex())
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
when 'Remark42'
|
when 'Remark42'
|
||||||
+countBlock
|
+countBlock
|
||||||
a(href=url_for(page.path) + '#post-comment')
|
a(href=url_for(page.path) + '#post-comment')
|
||||||
span.remark42__counter(data-url=urlNoIndex())
|
span.remark42__counter(data-url=urlNoIndex())
|
||||||
|
i.fa-solid.fa-spinner.fa-spin
|
||||||
Loaded 3 of 11 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user