aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-17 18:22:24 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-17 18:22:24 -0400
commit4c838533cf5a3e7bb748ab93d3ddd3a35fecdb22 (patch)
treedac999b671bed36c231703f821b87e42764d0607 /themes/hugo-pt2021
parent04aa050632c246464c7e7ef3888a4d3b2ffafcce (diff)
downloadpablotron.org-4c838533cf5a3e7bb748ab93d3ddd3a35fecdb22.tar.bz2
pablotron.org-4c838533cf5a3e7bb748ab93d3ddd3a35fecdb22.zip
themes/hugo-pt2021/layouts/partials/head.html: add responsive viewport, add comments, clean up formatting
Diffstat (limited to 'themes/hugo-pt2021')
-rw-r--r--themes/hugo-pt2021/layouts/partials/head.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/themes/hugo-pt2021/layouts/partials/head.html b/themes/hugo-pt2021/layouts/partials/head.html
index 2c6274f..37ec18c 100644
--- a/themes/hugo-pt2021/layouts/partials/head.html
+++ b/themes/hugo-pt2021/layouts/partials/head.html
@@ -1,15 +1,26 @@
<head>
<meta charset='utf-8'/>
+
+ {{/* set responsive viewport */}}
+ <meta name='viewport' content='width=device-width, initial-scale=1'/>
+
<title>
{{- block "title" . -}}
{{- .Page.Title -}}
{{- end -}}
</title>
+ {{/* set stylesheet */}}
{{- $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" false) -}}
{{- $style := resources.Get "style.sass" | resources.ToCSS $options | resources.Fingerprint -}}
- <link rel='stylesheet' type='text/css' href='{{ $style.Permalink }}' integrity='{{ $style.Data.Integrity }}'/>
+ <link
+ rel='stylesheet'
+ type='text/css'
+ href='{{ $style.Permalink }}'
+ integrity='{{ $style.Data.Integrity }}'
+ />
+ {{/* add feeds */}}
{{- range .AlternativeOutputFormats -}}
{{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{- end -}}