🏗️ Finish the footer attributes redesign.

This commit is contained in:
凡梦星尘 2022-06-01 14:37:40 +08:00
parent 12900798d5
commit 4fef03ee1f
3 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -47,7 +47,7 @@
</main>
<footer class="footer">
<div class="footer-inner">
{{- partial "footer" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
{{- partial "footer" . }}
</div>
</footer>

View File

@ -1,10 +1,10 @@
{{- $ft := .P.footer }}
{{- $ft := .Site.Params.footer }}
{{- if $ft.beian.enable }}
{{- with $ft.beian }}
<div class="beian">
<a href="https://beian.miit.gov.cn" target="_blank">{{ .icp }}</a>
<img src="/imgs/gongan.png" alt="公网安备">
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{ .gonganNum }}" target="_blank">京公网安备 {{ .gonganNum }}</a>
<img src="/imgs/gongan.png" alt="{{ .provinceAbbr }}公网安备">
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{ .gonganNum }}" target="_blank">{{ .provinceAbbr }}公网安备 {{ .gonganNum }} </a>
</div>
{{- end }}
{{- end }}
@ -25,7 +25,7 @@
<span class="with-love">
<i class="{{ $ft.icon.name }}"></i>
</span>
<span class="author" itemprop="copyrightHolder">{{ default $ft.copyright .P.author }}</span>
<span class="author" itemprop="copyrightHolder">{{ default $ft.copyright .Site.Params.author }}</span>
</div>
{{/* TODO
<!--
@ -36,7 +36,7 @@
<span class="post-meta-item-icon">
<i class="fa fa-chart-line"></i>
</span>
{{- if .P.symbols_count_time.item_text_total }}
{{- if .Site.Params.symbols_count_time.item_text_total }}
<span>{{ __('symbols_count_time.count_total') + __('symbol.colon') }}</span>
{{- end }}
<span title="{{ __('symbols_count_time.count_total') }}">{{ symbolsCountTotal(site) }}</span>
@ -47,7 +47,7 @@
<span class="post-meta-item-icon">
<i class="fa fa-coffee"></i>
</span>
{{- if .P.symbols_count_time.item_text_total }}
{{- if .Site.Params.symbols_count_time.item_text_total }}
<span>{{ __('symbols_count_time.time_total') }} &asymp;</span>
{{- end }}
<span title="{{ __('symbols_count_time.time_total') }}">{{ symbolsTimeTotal(site, config.symbols_count_time.awl, config.symbols_count_time.wpm, __('symbols_count_time.time_minutes')) }}</span>
@ -57,8 +57,8 @@
{{- end }}
-->
*/}}
{{- if .P.busuanzi.enable }}
{{ with .P.busuanzi }}
{{- if .Site.Params.busuanzi.enable }}
{{ with .Site.Params.busuanzi }}
<div class="busuanzi-count">
{{- if .visitors }}
<span class="post-meta-item" id="busuanzi_container_site_uv" title="{{ T "VisitorsLabel" }}">
@ -85,7 +85,7 @@
{{- end }}
{{- if $ft.powered }}
<div class="powered-by">
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> &amp; <a href='https://github.com/hugo-next' target='_blank'>NexT.%s</a>" .P.scheme }}
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> &amp; <a href='https://github.com/hugo-next' target='_blank'>NexT.%s</a>" .Site.Params.scheme }}
{{- printf (T "FooterPowerby") $pb | safeHTML }}
</div>
{{- end }}