aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/partials/head.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-17 19:52:10 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-17 19:52:10 -0400
commitba930dfe0ec42e181000a4e2c460805fceeb2d9a (patch)
tree59456802f7534cc0dac0fe2584eaed1638ca7243 /themes/hugo-pt2021/layouts/partials/head.html
parenta3e0e3d86e0d2257c4ac5eff458a5605191ec533 (diff)
downloadpablotron.org-ba930dfe0ec42e181000a4e2c460805fceeb2d9a.tar.bz2
pablotron.org-ba930dfe0ec42e181000a4e2c460805fceeb2d9a.zip
add menu script, fix menu rendering on mobile
Diffstat (limited to 'themes/hugo-pt2021/layouts/partials/head.html')
-rw-r--r--themes/hugo-pt2021/layouts/partials/head.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/head.html b/themes/hugo-pt2021/layouts/partials/head.html
index 37ec18c..56468e4 100644
--- a/themes/hugo-pt2021/layouts/partials/head.html
+++ b/themes/hugo-pt2021/layouts/partials/head.html
@@ -10,7 +10,7 @@
{{- end -}}
</title>
- {{/* set stylesheet */}}
+ {{/* load stylesheet */}}
{{- $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" false) -}}
{{- $style := resources.Get "style.sass" | resources.ToCSS $options | resources.Fingerprint -}}
<link
@@ -20,6 +20,15 @@
integrity='{{ $style.Data.Integrity }}'
/>
+ {{/* load javascript */}}
+ {{- $script := resources.Get "script.js" | js.Build "script.js" | minify | fingerprint -}}
+ <script
+ type='text/javascript'
+ src='{{ $script.Permalink }}'
+ integrity='{{ $script.Data.Integrity }}'
+ defer
+ ></script>
+
{{/* add feeds */}}
{{- range .AlternativeOutputFormats -}}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}