diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index e0247c2..24f8d44 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -265,14 +265,14 @@ params: footer: # Specify the year when the site was setup. If not defined, current year will be used. - #since: 2021 + since: 2010 # Icon between year and copyright info. icon: # Icon name in Font Awesome. See: https://fontawesome.com/icons name: fa fa-heart # If you want to animate the icon, set it to true. - animated: false + animated: true # Change the color of icon, using Hex Code. color: "#ff0000" @@ -285,13 +285,13 @@ params: # Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn beian: enable: false - icp: + icp: 粤ICP备18047355-1号 # The digit in the num of gongan beian. - gongan_id: + #gongan_id: # The full num of gongan beian. - gongan_num: + gonganNum: 11010102001808 # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download - gongan_icon_url: + #gongan_icon_url: # --------------------------------------------------------------- @@ -784,7 +784,7 @@ params: visitorsIcon: fa fa-user views: true viewsIcon: fa fa-eye - postViews: true + postViews: false postViewsIcon: far fa-eye diff --git a/i18n/zh-cn.yaml b/i18n/zh-cn.yaml index d2200f5..799ac3c 100644 --- a/i18n/zh-cn.yaml +++ b/i18n/zh-cn.yaml @@ -53,5 +53,10 @@ PostTag: PostReadMore: other: "阅读全文" +UserVistorsLabel: + other: 总访客量 +PageViewsLabel: + other: 总访问量 + FooterPowerby: other: "由 %s 强力驱动" \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 65af36d..ecd8a97 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -46,7 +46,7 @@ diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e69de29..2c5f04b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -0,0 +1,91 @@ +{{- $ft := .P.footer }} +{{- if $ft.beian.enable }} +{{- with $ft.beian }} +
+ {{ .icp }} + 京公网安备 + 京公网安备 {{ .gonganNum }}号 +
+{{- end }} +{{- end }} + +{{/* + +*/}} +{{- if .P.busuanzi.enable }} +{{ with .P.busuanzi }} +
+ {{- if .visitors }} + + + + + + + {{- end }} + {{- if .views }} + + + + + + + {{- end }} +
+{{- end }} +{{- end }} +{{- if $ft.powered }} +
+ {{ $pb := printf "Hugo & NexT.%s" .P.scheme }} + {{- printf (T "FooterPowerby") $pb | safeHTML }} +
+{{- end }} \ No newline at end of file