diff options
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..ce38afc --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,28 @@ +<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 }}"/> +{{- with resources.Get "style.css" }} + {{- 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 }} +{{- with resources.Get "syntax.css" }} + {{- 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 }} +<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title> + |