blob: e4cfa803ac03ebdc573bb87921ef9f4b7d1fbe18 (
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
|
<footer class="pagefind-exclude my-8 mx-auto font-mono px-4
text-sm
md:w-[var(--page-width)] md:flex md:justify-between">
<!-- copyright -->
<section>
<p class="copyright">© 2022-{{ now | dateFormat "2006" }} <a href="https://www.guhub.cn/" target="_blank">Eltrac</a></p>
<p class="license">{{ T "footer.licenseStatement" (printf "<a href=\"https://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">CC BY-SA 4.0</a>") | safeHTML }}</p>
</section>
<!-- links -->
<section class="flex justify-between items-center
md:justify-start md:flex-col md:items-end">
<!-- Internal Links -->
<ul class="list-none flex gap-1 ps-0 my-2 mx-0 md:justify-end">
{{ range .Site.Params.footerInternalLinks }}
<li><a href="{{ .link }}" title="{{ .name }}">{{ .name }}</a></li>
<li class="text-secondary last:hidden ml-1">/</li>
{{ end }}
<li class="inline-flex items-center">
{{ if eq .Site.Language.Lang "en" }}
<a href="/en/posts/index.xml" title="RSS (English)" target="_blank">
{{ else if eq .Site.Language.Lang "zh" }}
<a href="/rss/" title="RSS (中文)">
{{ end }}
{{ T "RSS" . }}
</a>
</li>
</ul>
<!-- External Links -->
<ul class="list-style-none flex gap-2 ps-0 my-2 mx-0 md:justify-end">
{{ range .Site.Params.footerExternalLinks }}
<li class="inline-flex items-center"><a href="{{ .link }}" title="{{ .name }}" target="_blank">
<img class="h-4 w-auto inline-block rounded-full grayscale dark:invert" src="{{ .icon }}" />
</a></li>
{{ end }}
</ul>
</section>
</footer>
|