improvements to basic header

This commit is contained in:
Nuno Coração committed 2022-09-11 00:08:38 +01:00
1 parent 57f35d2a46
commit 4a45e5383b
8 files changed
+115 -282

No files matched your search

+10 -3
View File
@@ -19,7 +19,7 @@
</nav>
{{ end }}
<div class="flex items-center justify-between">
<div>
{{/* Copyright */}}
{{ if .Site.Params.footer.showCopyright | default true }}
<p class="text-sm text-neutral-500 dark:text-neutral-400">
@@ -32,6 +32,7 @@
{{- end }}
</p>
{{ end }}
{{/* Theme attribution */}}
{{ if .Site.Params.footer.showThemeAttribution | default true }}
<p class="text-xs text-neutral-500 dark:text-neutral-400">
@@ -42,9 +43,15 @@
{{ i18n "footer.powered_by" (dict "Hugo" $hugo "Theme" $blowfish) | safeHTML }}
</p>
{{ end }}
</div>
</div>
<script>
mediumZoom(document.querySelectorAll("img:not(.nozoom)"), {
margin: 24,
background: 'rgba(0,0,0,0.5)',
scrollOffset: 0,
})
</script>
{{/* Extend footer - eg. for extra scripts, etc. */}}
{{ if templates.Exists "partials/extend-footer.html" }}
{{ partialCached "extend-footer.html" . }}