mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-10-04 06:22:00 +08:00
feat: CDN 可配置為 unpkg
fix: 評論系統開啟時 busuanzi 的 page_pv 不顯示
This commit is contained in:
1 parent
9a86429484
commit
b4d3ea86bb
4 files changed
+69
-66
No files matched your search
+3
-3
@@ -836,11 +836,11 @@ inject:
|
|||||||
# 非必要請不要修改
|
# 非必要請不要修改
|
||||||
CDN:
|
CDN:
|
||||||
# The CDN provider of internal scripts (主題內部 js 的 cdn 配置)
|
# The CDN provider of internal scripts (主題內部 js 的 cdn 配置)
|
||||||
# option: local/jsdelivr
|
# option: local/jsdelivr/unpkg
|
||||||
# Dev version cannot choose jsdelivr (dev版的主題不能設置為 jsdelivr)
|
# Dev version cannot choose jsdelivr/unpkg (dev版的主題不能設置為 jsdelivr/unpkg)
|
||||||
internal_provider: local
|
internal_provider: local
|
||||||
# The CDN provider of third party scripts (第三方 js 的 cdn 配置)
|
# The CDN provider of third party scripts (第三方 js 的 cdn 配置)
|
||||||
# option: local/jsdelivr
|
# option: local/jsdelivr/unpkg
|
||||||
# when set it to local, you need to install hexo-butterfly-extjs
|
# when set it to local, you need to install hexo-butterfly-extjs
|
||||||
third_party_provider: jsdelivr
|
third_party_provider: jsdelivr
|
||||||
option:
|
option:
|
||||||
|
|||||||
@@ -63,21 +63,16 @@
|
|||||||
|
|
||||||
- const commentUse = comments.use
|
- const commentUse = comments.use
|
||||||
if commentUse && !comments.lazyload
|
if commentUse && !comments.lazyload
|
||||||
case commentUse[0]
|
if commentUse[0] === 'Valine' && theme.valine.visitor
|
||||||
when 'Valine'
|
|
||||||
if 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
|
||||||
when 'Waline'
|
else if commentUse[0] === 'Waline' && theme.waline.pageview
|
||||||
if 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))
|
||||||
when 'Twikoo'
|
else if commentUse[0] === 'Twikoo' && theme.twikoo.visitor
|
||||||
if theme.twikoo.visitor
|
|
||||||
+pvBlock('','','')
|
+pvBlock('','','')
|
||||||
span#twikoo_visitors
|
span#twikoo_visitors
|
||||||
default
|
else if theme.busuanzi.page_pv
|
||||||
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
|
||||||
else if theme.busuanzi.page_pv
|
else if theme.busuanzi.page_pv
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hexo-theme-butterfly",
|
"name": "hexo-theme-butterfly",
|
||||||
"version": "4.3.0-b1",
|
"version": "4.3.0-b2",
|
||||||
"description": "A Simple and Card UI Design theme for Hexo",
|
"description": "A Simple and Card UI Design theme for Hexo",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user