🏗️ 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

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