🎨 Update the site stat paramter format.
This commit is contained in:
parent
fdaabac210
commit
c7e4f52499
@ -298,11 +298,11 @@ params:
|
||||
# Posts / Categories / Tags in sidebar.
|
||||
basic: true
|
||||
# 站点访问信息
|
||||
# Site information
|
||||
statistic:
|
||||
# Site's view information
|
||||
views:
|
||||
enable: true
|
||||
# 组件类型,可选值为: 51la, busuanzi
|
||||
# 使用51la时需要注册账号:https://invite.51.la/1NUfGTS1?target=V6
|
||||
# 使用51la时需要注册账号:https://invite.51.la/
|
||||
# Plguin value is: 51la, busuanzi
|
||||
plugin: busuanzi
|
||||
|
||||
|
@ -29,11 +29,10 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ if .Site.Params.siteState.statistic.enable }}
|
||||
{{ partial "sidebar/siteinfo.html" . }}
|
||||
{{ if .Site.Params.siteState.views.enable }}
|
||||
{{ partialCached "sidebar/siteinfo.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and .Site.Params.backTop.enable .Site.Params.backTop.sidebar }}
|
||||
|
@ -9,7 +9,7 @@
|
||||
<div class="item-name"><i class="fa-solid fa-calendar-check"></i>{{ T "SiteInfoItems.runTimes" }}</div>
|
||||
<div class="item-count" id="runTimes" data-publishdate="{{ $scratch.Get "last" }}"></div>
|
||||
</div>
|
||||
{{ if eq .Site.Params.siteState.statistic.plugin "busuanzi" }}
|
||||
{{ if eq .Site.Params.siteState.views.plugin "busuanzi" }}
|
||||
{{ with .Site.Params.analytics.busuanzi }}
|
||||
<div class="siteinfo-item">
|
||||
<div class="item-name">
|
||||
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if eq .Site.Params.siteState.statistic.plugin "51la" }}
|
||||
{{ if eq .Site.Params.siteState.views.plugin "51la" }}
|
||||
<div id="la-siteinfo-widget" style="display: none;"></div>
|
||||
<div class="siteinfo-item">
|
||||
<div class="item-name">
|
||||
|
Loading…
Reference in New Issue
Block a user