wires

summary refs log tree commit diff
path: root/layouts/_partials/head.html
diff options
context:
space:
mode:
authorwires <wires@noreply.wires.systems>2025-07-29 14:37:32 -0400
committerwires <wires@noreply.wires.systems>2025-07-29 14:37:32 -0400
commit54e4a732484c120d9f95fe3451da932859cf7473 (patch)
tree8eadbeaed6fbac095f602740f3abfc8b76a860fe /layouts/_partials/head.html
parentadd draft reading list page (diff)
downloadblog-54e4a732484c120d9f95fe3451da932859cf7473.tar.gz
fix stuff for new version of hugo
Diffstat (limited to 'layouts/_partials/head.html')
-rw-r--r--layouts/_partials/head.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html
new file mode 100644
index 0000000..2fe366d
--- /dev/null
+++ b/layouts/_partials/head.html
@@ -0,0 +1,21 @@
+<meta charset="utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+{{ with (or .Description .Site.Params.description) }}
+<meta name="description" content="{{ . }}"/>
+{{ end }}
+{{ with .Keywords }}<meta name="keywords" content="{{ delimit . ", " }}"/>{{ end }}
+<link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"/>
+<link rel="canonical" href="{{ .Permalink }}"/>
+{{ range slice "style.css" "syntax.css"}}
+{{- with resources.Get . }}
+  {{- if eq hugo.Environment "development" }}
+    <link rel="stylesheet" href="{{ .RelPermalink }}">
+  {{- else }}
+    {{- with . | minify | fingerprint }}
+      <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
+    {{- end }}
+  {{- end }}
+{{- end }}
+{{ end }}
+<title>{{ printf "%s | %s" .Title site.Title }}</title>
+