2021-10-19 04:45:11 +00:00
|
|
|
<footer class="py-10">
|
|
|
|
{{/* Footer menu */}}
|
|
|
|
{{ if .Site.Menus.footer }}
|
|
|
|
<nav class="pb-4 text-base font-medium text-neutral-400 dark:text-neutral-500">
|
|
|
|
<ul class="flex flex-col list-none sm:flex-row">
|
|
|
|
{{ range .Site.Menus.footer }}
|
|
|
|
<li class="mb-1 sm:mb-0 sm:mr-7 sm:last:mr-0">
|
|
|
|
<a
|
|
|
|
class="hover:underline hover:underline-primary-500 hover:underline-thickness-bold hover:underline-offset-small"
|
|
|
|
href="{{ .URL }}"
|
|
|
|
title="{{ .Title }}"
|
2021-10-26 23:34:50 +00:00
|
|
|
>{{ .Name | markdownify | emojify }}</a
|
2021-10-19 04:45:11 +00:00
|
|
|
>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{/* Copyright */}}
|
2021-10-19 04:45:11 +00:00
|
|
|
<p class="text-sm text-neutral-400 dark:text-neutral-500">
|
2021-08-11 05:28:33 +00:00
|
|
|
{{- with .Site.Copyright }}
|
|
|
|
{{ . | emojify | markdownify }}
|
|
|
|
{{- else }}
|
|
|
|
©
|
|
|
|
{{ now.Format "2006" }}
|
2021-10-26 23:34:50 +00:00
|
|
|
{{ .Site.Author.name | markdownify | emojify }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{- end }}
|
|
|
|
</p>
|
|
|
|
{{/* Theme attribution */}}
|
|
|
|
{{ if .Site.Params.attribution | default true }}
|
2021-08-20 07:02:08 +00:00
|
|
|
<p class="text-xs text-neutral-300 dark:text-neutral-600">
|
2021-09-20 03:24:28 +00:00
|
|
|
{{ $hugo := printf `<a class="hover:underline hover:underline-primary-300 hover:text-primary-400"
|
2021-10-19 22:31:28 +00:00
|
|
|
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>`
|
2021-09-20 03:24:28 +00:00
|
|
|
}}
|
2021-10-19 22:31:28 +00:00
|
|
|
{{ $congo := printf `<a class="hover:underline hover:underline-primary-300 hover:text-primary-400" href="https://git.io/hugo-congo" target="_blank" rel="noopener noreferrer">Congo</a>` }}
|
|
|
|
{{ i18n "footer.powered_by" (dict "Hugo" $hugo "Congo" $congo) | safeHTML }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</p>
|
|
|
|
{{ end }}
|
2021-08-14 00:47:33 +00:00
|
|
|
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
|
|
|
{{ if templates.Exists "partials/extend-footer.html" }}
|
|
|
|
{{ partialCached "extend-footer.html" . }}
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</footer>
|
|
|
|
|
|
|
|
{{/* Include mermaid.js only on pages that use the shortcode */}}
|
2021-08-20 22:54:42 +00:00
|
|
|
{{- if .Page.HasShortcode "mermaid" -}}
|
2021-10-19 23:21:44 +00:00
|
|
|
<script src="https://unpkg.com/mermaid@8.13.3/dist/mermaid.min.js"></script>
|
2021-08-11 05:28:33 +00:00
|
|
|
<script>
|
|
|
|
mermaid.initialize({ theme: "default" });
|
|
|
|
</script>
|
|
|
|
{{- end -}}
|