🏗️ Finish the footer attributes redesign.
This commit is contained in:
parent
12900798d5
commit
4fef03ee1f
@ -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 ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn
|
||||||
beian:
|
beian:
|
||||||
enable: false
|
enable: true
|
||||||
icp: 粤ICP备18047355-1号
|
icp: 粤ICP备18047355-1号
|
||||||
# The digit in the num of gongan beian.
|
# The digit in the num of gongan beian.
|
||||||
#gongan_id:
|
provinceAbbr: 沪
|
||||||
# The full num of gongan beian.
|
# The full num of gongan beian.
|
||||||
gonganNum: 11010102001808
|
gonganNum: 11010102001808
|
||||||
# The icon for gongan beian. See: http://www.beian.gov.cn/portal/download
|
# 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.
|
# Show Views / Visitors of the website / page with busuanzi.
|
||||||
# For more information: http://ibruce.info/2015/04/04/busuanzi/
|
# For more information: http://ibruce.info/2015/04/04/busuanzi/
|
||||||
busuanzi:
|
busuanzi:
|
||||||
enable: false
|
enable: true
|
||||||
visitors: true
|
visitors: true
|
||||||
visitorsIcon: fa fa-user
|
visitorsIcon: fa fa-user
|
||||||
views: true
|
views: true
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
</main>
|
</main>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="footer-inner">
|
<div class="footer-inner">
|
||||||
{{- partial "footer" (dict "P" $P "Page" .Page "Scratch" .Scratch) }}
|
{{- partial "footer" . }}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{{- $ft := .P.footer }}
|
{{- $ft := .Site.Params.footer }}
|
||||||
{{- if $ft.beian.enable }}
|
{{- if $ft.beian.enable }}
|
||||||
{{- with $ft.beian }}
|
{{- with $ft.beian }}
|
||||||
<div class="beian">
|
<div class="beian">
|
||||||
<a href="https://beian.miit.gov.cn" target="_blank">{{ .icp }}</a>
|
<a href="https://beian.miit.gov.cn" target="_blank">{{ .icp }}</a>
|
||||||
<img src="/imgs/gongan.png" alt="京公网安备">
|
<img src="/imgs/gongan.png" alt="{{ .provinceAbbr }}公网安备">
|
||||||
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{ .gonganNum }}" target="_blank">京公网安备 {{ .gonganNum }}号</a>
|
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={{ .gonganNum }}" target="_blank">{{ .provinceAbbr }}公网安备 {{ .gonganNum }} 号</a>
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -25,7 +25,7 @@
|
|||||||
<span class="with-love">
|
<span class="with-love">
|
||||||
<i class="{{ $ft.icon.name }}"></i>
|
<i class="{{ $ft.icon.name }}"></i>
|
||||||
</span>
|
</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>
|
</div>
|
||||||
{{/* TODO
|
{{/* TODO
|
||||||
<!--
|
<!--
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="fa fa-chart-line"></i>
|
<i class="fa fa-chart-line"></i>
|
||||||
</span>
|
</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>
|
<span>{{ __('symbols_count_time.count_total') + __('symbol.colon') }}</span>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<span title="{{ __('symbols_count_time.count_total') }}">{{ symbolsCountTotal(site) }}</span>
|
<span title="{{ __('symbols_count_time.count_total') }}">{{ symbolsCountTotal(site) }}</span>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
<span class="post-meta-item-icon">
|
<span class="post-meta-item-icon">
|
||||||
<i class="fa fa-coffee"></i>
|
<i class="fa fa-coffee"></i>
|
||||||
</span>
|
</span>
|
||||||
{{- if .P.symbols_count_time.item_text_total }}
|
{{- if .Site.Params.symbols_count_time.item_text_total }}
|
||||||
<span>{{ __('symbols_count_time.time_total') }} ≈</span>
|
<span>{{ __('symbols_count_time.time_total') }} ≈</span>
|
||||||
{{- end }}
|
{{- 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>
|
<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 }}
|
{{- end }}
|
||||||
-->
|
-->
|
||||||
*/}}
|
*/}}
|
||||||
{{- if .P.busuanzi.enable }}
|
{{- if .Site.Params.busuanzi.enable }}
|
||||||
{{ with .P.busuanzi }}
|
{{ with .Site.Params.busuanzi }}
|
||||||
<div class="busuanzi-count">
|
<div class="busuanzi-count">
|
||||||
{{- if .visitors }}
|
{{- if .visitors }}
|
||||||
<span class="post-meta-item" id="busuanzi_container_site_uv" title="{{ T "VisitorsLabel" }}">
|
<span class="post-meta-item" id="busuanzi_container_site_uv" title="{{ T "VisitorsLabel" }}">
|
||||||
@ -85,7 +85,7 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $ft.powered }}
|
{{- if $ft.powered }}
|
||||||
<div class="powered-by">
|
<div class="powered-by">
|
||||||
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> & <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> & <a href='https://github.com/hugo-next' target='_blank'>NexT.%s</a>" .Site.Params.scheme }}
|
||||||
{{- printf (T "FooterPowerby") $pb | safeHTML }}
|
{{- printf (T "FooterPowerby") $pb | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in New Issue
Block a user