Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
大白技术控
yanglr2010
提交
8930455a
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,体验更适合开发者的 AI 搜索 >>
提交
8930455a
编写于
6月 16, 2019
作者:
EvanOne(文一)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: Add busuanzi count
上级
5236ed3d
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
65 addition
and
9 deletion
+65
-9
_config.yml
_config.yml
+21
-0
layout/_common/footer.pug
layout/_common/footer.pug
+2
-0
layout/_mixins/post-header.pug
layout/_mixins/post-header.pug
+6
-5
layout/_third-party/analytics/analytics-widget.pug
layout/_third-party/analytics/analytics-widget.pug
+1
-0
layout/_third-party/analytics/busuanzi.pug
layout/_third-party/analytics/busuanzi.pug
+16
-0
source/css/_common/footer.styl
source/css/_common/footer.styl
+0
-0
source/css/_common/header.styl
source/css/_common/header.styl
+0
-0
source/css/_common/index.styl
source/css/_common/index.styl
+0
-0
source/css/_common/main.styl
source/css/_common/main.styl
+0
-0
source/css/_common/page.styl
source/css/_common/page.styl
+0
-0
source/css/_common/post.styl
source/css/_common/post.styl
+0
-0
source/css/_common/responsive.styl
source/css/_common/responsive.styl
+0
-0
source/css/_common/sidebar.styl
source/css/_common/sidebar.styl
+0
-0
source/css/_third-party/analytics.styl
source/css/_third-party/analytics.styl
+15
-0
source/css/_third-party/index.styl
source/css/_third-party/index.styl
+1
-0
source/css/index.styl
source/css/index.styl
+3
-4
未找到文件。
_config.yml
浏览文件 @
8930455a
...
...
@@ -281,6 +281,27 @@ gitment:
# Enable / Disable Lazy load. Enable is recommended.
lazy
:
true
# ---------------------------------------------------------------
# Statistics and Analytics config
# ---------------------------------------------------------------
busuanzi
:
enable
:
true
# Number of unique visitor to the entire site.
site_uv
:
enable
:
true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon
:
user
# Number of page view to the entire site.
site_pv
:
enable
:
true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon
:
eye
# Number of page view to a post.
post_pv
:
enable
:
true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon
:
eye
# ---------------------------------------------------------------
# Other config
# ---------------------------------------------------------------
...
...
layout/_common/footer.pug
浏览文件 @
8930455a
...
...
@@ -46,6 +46,8 @@ footer#footer
if footer.theme.version
span= ' v' + stun_env('version') + '.'
include ../_third-party/analytics/analytics-widget.pug
if footer.custom.enable
div
span!= footer.custom.text
layout/_mixins/post-header.pug
浏览文件 @
8930455a
...
...
@@ -39,8 +39,9 @@ mixin postHeader(post)
span= _p('post.word_count') + ' '
span TODO
span.post-meta-read
i(class='fa fa-eye')
if !theme.post_meta.icon_only
span= _p('post.read_count') + ' '
span TODO
if theme.busuanzi.post_pv.enable
span.post-meta-read
i(class=`fa fa-${theme.busuanzi.post_pv.icon}`)
if !theme.post_meta.icon_only
span= _p('post.read_count') + ' '
span(id="busuanzi_value_page_pv")
layout/_third-party/analytics/analytics-widget.pug
0 → 100644
浏览文件 @
8930455a
include ./busuanzi.pug
layout/_third-party/analytics/busuanzi.pug
0 → 100644
浏览文件 @
8930455a
if theme.busuanzi.enable
div.busuanzi
script(async src="https://cdn.jsdelivr.net/gh/sukkaw/busuanzi@2.3/bsz.pure.mini.js")
if theme.busuanzi.site_uv.enable
span.busuanzi-uv
i(class="fa fa-user")
span(id="busuanzi_value_site_uv")
if theme.busuanzi.site_uv.enable && theme.busuanzi.site_pv.enable
span.separator |
if theme.busuanzi.site_pv.enable
span.busuanzi-pv
i(class="fa fa-eye")
span(id="busuanzi_value_site_pv")
source/css/_
layout
/footer.styl
→
source/css/_
common
/footer.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/header.styl
→
source/css/_
common
/header.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/index.styl
→
source/css/_
common
/index.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/main.styl
→
source/css/_
common
/main.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/page.styl
→
source/css/_
common
/page.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/post.styl
→
source/css/_
common
/post.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/responsive.styl
→
source/css/_
common
/responsive.styl
浏览文件 @
8930455a
文件已移动
source/css/_
layout
/sidebar.styl
→
source/css/_
common
/sidebar.styl
浏览文件 @
8930455a
文件已移动
source/css/_third-party/analytics.styl
0 → 100644
浏览文件 @
8930455a
.busuanzi
.separator
margin: 0 .3rem
&-uv
color: $white-light
i
margin: 0 .3rem 0 0
&-pv
color: $white-light
i
margin: 0 .3rem 0 0
source/css/_third-party/index.styl
0 → 100644
浏览文件 @
8930455a
@import './analytics.styl'
source/css/index.styl
浏览文件 @
8930455a
// third-party
@import 'nib'
@import './_third-party/normalize.min.css'
// project
@import './var.styl'
@import './_global'
@import './_components'
@import './_mixins'
@import './_layout'
@import './_common'
@import './_components'
@import './_highlight'
@import './_third-party'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录