mirror of https://github.com/jpanther/congo.git
55 lines
1.9 KiB
HTML
55 lines
1.9 KiB
HTML
<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 }}"
|
|
>{{ .Name }}</a
|
|
>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
{{ end }}
|
|
{{/* Copyright */}}
|
|
<p class="text-sm text-neutral-400 dark:text-neutral-500">
|
|
{{- with .Site.Copyright }}
|
|
{{ . | emojify | markdownify }}
|
|
{{- else }}
|
|
©
|
|
{{ now.Format "2006" }}
|
|
{{ .Site.Author.name }}
|
|
{{- end }}
|
|
</p>
|
|
{{/* Theme attribution */}}
|
|
{{ if .Site.Params.attribution | default true }}
|
|
<p class="text-xs text-neutral-300 dark:text-neutral-600">
|
|
{{ $hugo := printf `<a class="hover:underline hover:underline-primary-300 hover:text-primary-400"
|
|
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>
|
|
&
|
|
<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) | safeHTML }}
|
|
</p>
|
|
{{ end }}
|
|
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
|
{{ if templates.Exists "partials/extend-footer.html" }}
|
|
{{ partialCached "extend-footer.html" . }}
|
|
{{ end }}
|
|
</footer>
|
|
|
|
{{/* Include mermaid.js only on pages that use the shortcode */}}
|
|
{{- if .Page.HasShortcode "mermaid" -}}
|
|
<script src="https://unpkg.com/mermaid@8.11.4/dist/mermaid.min.js"></script>
|
|
<script>
|
|
mermaid.initialize({ theme: "default" });
|
|
</script>
|
|
{{- end -}}
|