hugo-theme-even/layouts/partials/footer.html

51 lines
2.1 KiB
HTML
Raw Normal View History

2017-08-27 14:38:42 +00:00
<div class="social-links">
{{- range $name, $path := .Site.Params.social }}
{{- if $path }}
{{- $realName := slicestr $name 2 }}
<a href="{{ $path | safeURL }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a>
2017-08-27 14:38:42 +00:00
{{- end }}
{{- end }}
{{ if .Site.LanguagePrefix -}}
<a href="{{ .Site.LanguagePrefix | absURL }}/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
{{- else -}}
<a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
{{- end }}
2017-08-27 14:38:42 +00:00
</div>
<div class="copyright">
<span class="power-by">
2018-01-31 14:07:50 +00:00
{{ (printf (T "powered") `<a class="hexo-link" href="https://gohugo.io">Hugo</a>`) | safeHTML }}
2017-08-27 14:38:42 +00:00
</span>
<span class="division">|</span>
<span class="theme-info">
2018-01-31 14:07:50 +00:00
{{ T "theme" }} -
2017-08-28 09:03:07 +00:00
<a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
2017-08-27 14:38:42 +00:00
</span>
{{ if .Site.Params.busuanzi.enable -}}
<div class="busuanzi-footer">
{{ $spinner := "img/spinner.svg" | relURL -}}
{{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.sitePV -}}
{{ $valueSpan := printf `<span id="busuanzi_value_site_pv"><img src="%s" alt="spinner.svg"/></span>` $spinner -}}
<span id="busuanzi_container_site_pv"> {{ printf (T "sitePV") $valueSpan | safeHTML }} </span>
{{ if .Site.Params.busuanzi.siteUV }}<span class="division">|</span>{{ end }}
{{- end }}
{{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.siteUV -}}
{{ $valueSpan := printf `<span id="busuanzi_value_site_uv"><img src="%s" alt="spinner.svg"/></span>` $spinner -}}
<span id="busuanzi_container_site_uv"> {{ printf (T "siteUV") $valueSpan | safeHTML }} </span>
{{- end }}
</div>
{{- end }}
2017-08-27 14:38:42 +00:00
<span class="copyright-year">
{{- $current := now.Format "2006" }}
&copy;
{{ if ne .Site.Params.since $current -}}
2017-08-27 14:38:42 +00:00
{{ .Site.Params.since }} -
{{ end }}
{{- $current -}}
<span class="heart"><i class="iconfont icon-heart"></i></span><!--
--><span>{{if .Site.Copyright }}{{ .Site.Copyright | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
2017-08-27 14:38:42 +00:00
</span>
</div>