2022-06-01 14:37:40 +08:00
|
|
|
{{- $ft := .Site.Params.footer }}
|
2022-05-28 12:53:13 +08:00
|
|
|
<div class="copyright">
|
|
|
|
©
|
|
|
|
<span itemprop="copyrightYear">
|
|
|
|
{{- $year := now.Year }}
|
|
|
|
{{- if isset $ft "since" }}
|
|
|
|
{{- if gt $year $ft.since }}
|
|
|
|
{{ $ft.since }} - {{ $year }}
|
|
|
|
{{- else }}
|
|
|
|
{{ $year }}
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
{{ $year }}
|
|
|
|
{{- end }}
|
|
|
|
</span>
|
|
|
|
<span class="with-love">
|
|
|
|
<i class="{{ $ft.icon.name }}"></i>
|
|
|
|
</span>
|
2022-06-01 14:42:03 +08:00
|
|
|
<span class="author" itemprop="copyrightHolder">{{ $ft.copyright | default .Site.Params.author }}</span>
|
2022-05-28 12:53:13 +08:00
|
|
|
</div>
|
2022-05-28 15:48:52 +08:00
|
|
|
{{/* TODO
|
2022-05-28 12:53:13 +08:00
|
|
|
<!--
|
|
|
|
{{- if config.symbols_count_time.total_symbols or config.symbols_count_time.total_time }}
|
|
|
|
<div class="wordcount">
|
|
|
|
{{- if config.symbols_count_time.total_symbols }}
|
|
|
|
<span class="post-meta-item">
|
|
|
|
<span class="post-meta-item-icon">
|
|
|
|
<i class="fa fa-chart-line"></i>
|
|
|
|
</span>
|
2022-06-01 14:37:40 +08:00
|
|
|
{{- if .Site.Params.symbols_count_time.item_text_total }}
|
2022-05-28 12:53:13 +08:00
|
|
|
<span>{{ __('symbols_count_time.count_total') + __('symbol.colon') }}</span>
|
|
|
|
{{- end }}
|
|
|
|
<span title="{{ __('symbols_count_time.count_total') }}">{{ symbolsCountTotal(site) }}</span>
|
|
|
|
</span>
|
|
|
|
{{- end }}
|
|
|
|
{{- if config.symbols_count_time.total_time }}
|
|
|
|
<span class="post-meta-item">
|
|
|
|
<span class="post-meta-item-icon">
|
|
|
|
<i class="fa fa-coffee"></i>
|
|
|
|
</span>
|
2022-06-01 14:37:40 +08:00
|
|
|
{{- if .Site.Params.symbols_count_time.item_text_total }}
|
2022-05-28 12:53:13 +08:00
|
|
|
<span>{{ __('symbols_count_time.time_total') }} ≈</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>
|
|
|
|
</span>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
-->
|
|
|
|
*/}}
|
2022-06-30 08:04:32 +08:00
|
|
|
{{- with .Site.Params.busuanzi }}
|
|
|
|
{{- if .enable }}
|
2022-05-28 12:53:13 +08:00
|
|
|
<div class="busuanzi-count">
|
|
|
|
{{- if .visitors }}
|
2022-05-28 16:24:17 +08:00
|
|
|
<span class="post-meta-item" id="busuanzi_container_site_uv" title="{{ T "VisitorsLabel" }}">
|
2022-05-28 12:53:13 +08:00
|
|
|
<span class="post-meta-item-icon">
|
|
|
|
<i class="{{ .visitorsIcon }}"></i>
|
|
|
|
</span>
|
|
|
|
<span class="site-uv" >
|
|
|
|
<span id="busuanzi_value_site_uv"></span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{{- end }}
|
|
|
|
{{- if .views }}
|
|
|
|
<span class="post-meta-item" id="busuanzi_container_site_pv" title="{{ T "PageViewsLabel" }}">
|
|
|
|
<span class="post-meta-item-icon">
|
|
|
|
<i class="{{ .viewsIcon }}"></i>
|
|
|
|
</span>
|
|
|
|
<span class="site-pv">
|
|
|
|
<span id="busuanzi_value_site_pv"></span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if $ft.powered }}
|
|
|
|
<div class="powered-by">
|
2022-06-30 08:04:32 +08:00
|
|
|
{{ $pb := printf "<a href='https://gohugo.io' target='_blank'>Hugo</a> & <a href='https://github.com/hugo-next/hugo-theme-next' target='_blank'>Hugo NexT.%s</a>" .Site.Params.scheme }}
|
2022-05-28 12:53:13 +08:00
|
|
|
{{- printf (T "FooterPowerby") $pb | safeHTML }}
|
|
|
|
</div>
|
2022-06-08 14:51:30 +08:00
|
|
|
{{- end }}
|
|
|
|
{{- with $ft.beian }}
|
2022-06-30 08:04:32 +08:00
|
|
|
{{- if .enable }}
|
2022-06-08 14:51:30 +08:00
|
|
|
<div class="beian">
|
|
|
|
<a href="https://beian.miit.gov.cn" target="_blank">{{ .icp }}</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 }}
|
2022-06-12 14:54:12 +08:00
|
|
|
{{- end }}
|
|
|
|
{{- with $ft.vendors }}
|
2022-06-30 08:04:32 +08:00
|
|
|
{{ if .enable }}
|
2022-06-12 14:54:12 +08:00
|
|
|
<div class="vendors-list">
|
|
|
|
{{- range .list }}
|
|
|
|
<a target="_blank" href="{{ .link }}" title="{{ .name }}">
|
2022-06-21 09:19:12 +08:00
|
|
|
{{- if .image }}
|
|
|
|
<img src="{{ .image.url }}" alt="{{ .name }}" />
|
2022-06-12 14:54:12 +08:00
|
|
|
{{- else }}
|
|
|
|
{{ .name }}
|
|
|
|
{{- end }}
|
|
|
|
</a>
|
|
|
|
{{- end }}
|
|
|
|
<span>{{ .title }}</span>
|
|
|
|
</div>
|
2022-06-30 08:04:32 +08:00
|
|
|
{{- end }}
|
2022-06-12 14:54:12 +08:00
|
|
|
{{- end }}
|
2022-09-10 21:41:33 +08:00
|
|
|
|
|
|
|
{{- $custom := .Scratch.Get "footer" }}
|
|
|
|
{{- if $custom }}
|
|
|
|
{{ partialCached $custom . }}
|
|
|
|
{{- end }}
|