diff options
Diffstat (limited to 'themes/hugo-pt2021/layouts')
-rw-r--r-- | themes/hugo-pt2021/layouts/partials/head.html | 13 |
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 -}} |