wires

summary refs log tree commit diff
path: root/layouts/_partials/head.html
diff options
context:
space:
mode:
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>
+