diff options
author | Julio Capote <jcapote@gmail.com> | 2018-11-06 02:49:16 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2018-11-06 02:49:16 +0000 |
commit | a62a3e7755579d93ce3a87243dd277575930fffe (patch) | |
tree | 6d074f7294c5b7a45bed7ac229a6802830da2a04 /themes/even/layouts/partials/footer.html | |
download | capotej.com-a62a3e7755579d93ce3a87243dd277575930fffe.tar.gz |
init
Diffstat (limited to '')
-rw-r--r-- | themes/even/layouts/partials/footer.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/themes/even/layouts/partials/footer.html b/themes/even/layouts/partials/footer.html new file mode 100644 index 0000000..b6a1fa5 --- /dev/null +++ b/themes/even/layouts/partials/footer.html @@ -0,0 +1,52 @@ +<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> + {{- 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 }} +</div> + +<div class="copyright"> + <span class="power-by"> + {{ (printf (T "powered") `<a class="hexo-link" href="https://gohugo.io">Hugo</a>`) | safeHTML }} + </span> + <span class="division">|</span> + <span class="theme-info"> + {{ T "theme" }} - + <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a> + </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 }} + + <span class="copyright-year"> + {{- $current := now.Format "2006" }} + © + {{ if ne .Site.Params.since $current }} + {{ .Site.Params.since }} - + {{ end }} + {{- $current }} + <span class="heart"> + <i class="iconfont icon-heart"></i> + </span> + <span class="author">{{if .Site.Copyright }}{{ .Site.Copyright | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span> + </span> +</div>
\ No newline at end of file |