Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
454bb9a6
Y
yanglr2010
项目概览
大白技术控
/
yanglr2010
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yanglr2010
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
454bb9a6
编写于
9月 09, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: Modify the config of busuanzi
上级
82e7d421
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
26 addition
and
31 deletion
+26
-31
_config.yml
_config.yml
+19
-23
layout/_mixins/post-header.pug
layout/_mixins/post-header.pug
+1
-2
layout/_partials/analytics/busuanzi.pug
layout/_partials/analytics/busuanzi.pug
+5
-5
layout/_third-party/analytics/busuanzi.pug
layout/_third-party/analytics/busuanzi.pug
+1
-1
未找到文件。
_config.yml
浏览文件 @
454bb9a6
...
...
@@ -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
:
tru
e
rounded
:
fals
e
# 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
:
tru
e
enable
:
fals
e
# ! -----------------------------------------------------
# ! 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
...
...
layout/_mixins/post-header.pug
浏览文件 @
454bb9a6
...
...
@@ -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
layout/_partials/analytics/busuanzi.pug
浏览文件 @
454bb9a6
- 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
...
...
layout/_third-party/analytics/busuanzi.pug
浏览文件 @
454bb9a6
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录