diff options
-rw-r--r-- | config.toml | 8 | ||||
-rw-r--r-- | themes/even/layouts/partials/footer.html | 15 |
2 files changed, 1 insertions, 22 deletions
diff --git a/config.toml b/config.toml index 4f1bc5b..b6a7143 100644 --- a/config.toml +++ b/config.toml @@ -82,7 +82,7 @@ copyright = "" # default: author.name ↓ # 默认为下面配 # Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`. toc = true # 是否开启目录 autoCollapseToc = false # Auto expand and collapse toc # 目录自动展开/折叠 - fancybox = true # see https://github.com/fancyapps/fancybox # 是否启用fancybox(图片可点击) + fancybox = false # see https://github.com/fancyapps/fancybox # 是否启用fancybox(图片可点击) mathjax = false # see https://www.mathjax.org/ # 是否使用mathjax(数学公式) mathjaxEnableSingleDollar = false # 是否使用 $...$ 即可進行inline latex渲染 mathjaxEnableAutoNumber = false # 是否使用公式自动编号 @@ -144,12 +144,6 @@ copyright = "" # default: author.name ↓ # 默认为下面配 enable = false options = "" # default: "{theme: 'simple'}" - [params.busuanzi] # count web traffic by busuanzi # 是否使用不蒜子统计站点访问量 - enable = false - siteUV = true - sitePV = true - pagePV = true - [params.reward] # 文章打赏 enable = false wechat = "/path/to/your/wechat-qr-code.png" # 微信二维码 diff --git a/themes/even/layouts/partials/footer.html b/themes/even/layouts/partials/footer.html index 577d45f..461a5c8 100644 --- a/themes/even/layouts/partials/footer.html +++ b/themes/even/layouts/partials/footer.html @@ -8,21 +8,6 @@ <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a> </span> - {{ if .Site.Params.busuanzi.enable -}} - <div class="busuanzi-footer"> - {{ $spinner := "img/spinner.svg" | relURL -}} - {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.sitePV -}} - {{ $valueSpan := printf `<span id="busuanzi_value_site_pv"><img src="%s" alt="spinner.svg"/></span>` $spinner -}} - <span id="busuanzi_container_site_pv"> {{ printf (T "sitePV") $valueSpan | safeHTML }} </span> - {{ if .Site.Params.busuanzi.siteUV }}<span class="division">|</span>{{ end }} - {{- end }} - {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.siteUV -}} - {{ $valueSpan := printf `<span id="busuanzi_value_site_uv"><img src="%s" alt="spinner.svg"/></span>` $spinner -}} - <span id="busuanzi_container_site_uv"> {{ printf (T "siteUV") $valueSpan | safeHTML }} </span> - {{- end }} - </div> - {{- end }} - <span class="copyright-year"> {{- $current := now.Format "2006" }} © |