summaryrefslogtreecommitdiff
path: root/layouts/_partials/footer.html
blob: fc3d0447e0c6506d7269f146dd3bc89e42312ab4 (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
<footer class="pagefind-exclude my-8 mx-auto font-mono px-4 md:px-0
    text-sm
    md:w-[var(--page-width)] md:flex md:justify-between">
    <!-- copyright -->
    <section>
        <p class="copyright">&copy; 2022-{{ now | dateFormat "2006" }} <a href="https://www.eltr.ac/" 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">

        <!-- IndieWeb ring -->
        <p class="inline-flex justify-center items-center gap-2">
            <a href="https://xn--sr8hvo.ws/previous">←</a>
            <a href="https://xn--sr8hvo.ws">IndieWeb ring</a>
            <a href="https://xn--sr8hvo.ws/next">→</a>
        </p>
        <!-- External Links -->
        <ul class="list-style-none flex items-center gap-2 ps-0 m-0 md:justify-end">
            {{ range .Site.Params.footerExternalLinks }}
            <li class="inline-flex items-center">
                <a href="{{ .link }}" title="{{ .name }}" target="_blank"
                    class="transition opacity-70 hover:opacity-100 hover:no-underline">
                    {{ if strings.Contains .icon "/" }}
                        <img
                            class="h-4 w-auto inline-block grayscale dark:invert"
                            src="{{ .icon }}"
                            alt="{{ .name }} icon."
                            loading="lazy"
                            width="1rem"
                            height="1rem"
                        />
                    {{ else }}
                        <span class="text-size-4 font-serif">{{ .icon }}</span>
                    {{ end }}
                </a>
            </li>
            {{ end }}
        </ul>

    </section>
</footer>