aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/footer.html
blob: c68ed1dc3aa17932e8e76b9995e726e1e74d5bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<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="https://banyan.divineduty.xyz" class="icons pleroma" title="Pleroma"></a>
    <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>
    <br>
    <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons Licence" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</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="source">
    <br>
    <a href="https://banyan.divineduty.xyz/GNUxeava/divine-chronicles">View source</a>
  </span>
  <span class="copyright-year">
    {{- $current := now.Format "2006" }}
    &copy; 
    {{ if ne .Site.Params.since $current -}}
      {{ .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>
  </span>
</div>