提交 454bb9a6 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: Modify the config of busuanzi

上级 82e7d421
......@@ -5,8 +5,8 @@
# Allow to cache content generation. Introduced in Stun v1.4.0
cache: true
# # Minify source files after hexo generator. Introduced in Stun v1.4.0
# minify: true
# Remove unnecessary files after hexo generate. Introduced in Stun v1.4.0
shake_file: true
# ---------------------------------------------------------------
# SEO Settings
......@@ -194,7 +194,8 @@ sidebar:
# Sidebar offset from top menubar (Only px units are supported).
offsetTop: 20px
# Horizon line.
horizon_line: true
horizon_line: false
# Suggest: 240px ~ 300px
width: 260px
author:
......@@ -206,7 +207,7 @@ author:
# You can also use a link of image.
url: /images/avatar.png
# If true, the avatar would be displayed in a circle.
rounded: true
rounded: false
# The value should be chosen from 0 to 1.
opacity: 1
# Mouse hover animation, available value: turn | shake.
......@@ -445,25 +446,20 @@ disqus:
# See: https://busuanzi.ibruce.info/
busuanzi:
enable: false
site:
# Only show by icon.
icon_only: false
# Number of unique visitor to the entire site.
uv:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
icon: user
# Number of page view to the entire site.
pv:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
icon: eye
# Only show by icon.
icon_only: false
# Number of unique visitor to the entire site.
site_uv:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
icon: user
# Number of page view to the entire site.
site_pv:
enable: true
icon: eye
# Number of page view to a post.
post_pv:
enable: true
# Only show by icon.
icon_only: false
# Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
icon: eye
# Google analytics ID
......@@ -623,7 +619,7 @@ quicklink:
# Pjax
# See: https://github.com/MoOx/pjax/
pjax:
enable: true
enable: false
# ! -----------------------------------------------------
# ! If you don't understand, please ignore the following.
# ! -----------------------------------------------------
......@@ -673,8 +669,8 @@ tag_cloud:
start_color: '#a4d8fa'
end_color: '#49b1f5'
# Size for tag.
min_size: 20
max_size: 30
min_size: 16
max_size: 26
# Maximum number of tags displayed. Change it if you have more than 200 tags.
max_amount: 200
......
......@@ -63,8 +63,7 @@ mixin postHeader(post)
if theme.busuanzi.enable && theme.busuanzi.post_pv.enable
span.post-header-meta-reading-count
i(class=`${fa_prefix} fa-${theme.busuanzi.post_pv.icon}`)
if !theme.post_meta.icon_only && !theme.busuanzi.post_pv.icon_only
if !theme.post_meta.icon_only && !theme.busuanzi.icon_only
span= __("post.reading_count") + " "
span#busuanzi_value_page_pv
- var fa_prefix = theme.fa_prefix || 'fa'
div.busuanzi
if theme.busuanzi.site.uv.enable
if theme.busuanzi.site_uv.enable
span.busuanzi-uv
i(class=`${fa_prefix} fa-user`)
if !theme.busuanzi.site.icon_only
if !theme.busuanzi.icon_only
span= __("footer.uv") + " "
span#busuanzi_value_site_uv
if theme.busuanzi.site.uv.enable && theme.busuanzi.site.pv.enable
if theme.busuanzi.site_uv.enable && theme.busuanzi.site_pv.enable
span.separator= "|"
if theme.busuanzi.site.pv.enable
if theme.busuanzi.site_pv.enable
span.busuanzi-pv
i(class=`${fa_prefix} fa-eye`)
if !theme.busuanzi.site.icon_only
if !theme.busuanzi.icon_only
span= __("footer.pv") + " "
span#busuanzi_value_site_pv
......
if theme.busuanzi.enable && (theme.busuanzi.site.uv.enable || theme.busuanzi.site.pv.enable || theme.busuanzi.post_pv.enable)
if theme.busuanzi.enable && (theme.busuanzi.site_uv.enable || theme.busuanzi.site_pv.enable || theme.busuanzi.post_pv.enable)
- var busuanzi_js = "https://cdn.jsdelivr.net/gh/sukkaw/busuanzi@latest/bsz.pure.mini.js"
- if (theme.cdn.busuanzi) busuanzi_js = theme.cdn.busuanzi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册