aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-pt2021/layouts/partials/head.html
blob: 2c6274f7731a5be213d99d86afa2cf4582c6df1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<head>
  <meta charset='utf-8'/>
  <title>
    {{- block "title" . -}}
      {{- .Page.Title -}}
    {{- end -}}
  </title>

  {{- $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 }}'/>

  {{- range .AlternativeOutputFormats -}}
    {{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
  {{- end -}}
</head>