diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 370d9d7..2073a3a 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -287,10 +287,10 @@ params: # Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn beian: - enable: false + enable: true icp: 粤ICP备18047355-1号 # The digit in the num of gongan beian. - #gongan_id: + provinceAbbr: 沪 # The full num of gongan beian. gonganNum: 11010102001808 # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download @@ -782,7 +782,7 @@ params: # Show Views / Visitors of the website / page with busuanzi. # For more information: http://ibruce.info/2015/04/04/busuanzi/ busuanzi: - enable: false + enable: true visitors: true visitorsIcon: fa fa-user views: true diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 2af42a5..9dbb7d4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -47,7 +47,7 @@ diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8cefe9e..a357aa5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,10 +1,10 @@ -{{- $ft := .P.footer }} +{{- $ft := .Site.Params.footer }} {{- if $ft.beian.enable }} {{- with $ft.beian }}
{{ .icp }} - 京公网安备 - 京公网安备 {{ .gonganNum }}号 + {{ .provinceAbbr }}公网安备 + {{ .provinceAbbr }}公网安备 {{ .gonganNum }} 号
{{- end }} {{- end }} @@ -25,7 +25,7 @@ - {{ default $ft.copyright .P.author }} + {{ default $ft.copyright .Site.Params.author }} {{/* TODO */}} -{{- if .P.busuanzi.enable }} -{{ with .P.busuanzi }} +{{- if .Site.Params.busuanzi.enable }} +{{ with .Site.Params.busuanzi }}
{{- if .visitors }} @@ -85,7 +85,7 @@ {{- end }} {{- if $ft.powered }}
- {{ $pb := printf "Hugo & NexT.%s" .P.scheme }} + {{ $pb := printf "Hugo & NexT.%s" .Site.Params.scheme }} {{- printf (T "FooterPowerby") $pb | safeHTML }}
{{- end }} \ No newline at end of file