~kmdodrill/hugo-bare-theme-no-analytics

ref: ea6e9be6afe5f02aabeb5bbfc9a75d230b592a2d hugo-bare-theme-no-analytics/layouts/partials/head.html -rw-r--r-- 1.1 KiB
ea6e9be6Kenneth Dodrill Add all files from Gitea 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{ $options := (dict "outputStyle" "compressed") }}
{{ $sass := resources.Get "css/site.sass" }}
{{ if $.Site.Params.postcss }}
{{ .Scratch.Set "sass" ($sass | resources.ToCSS $options | postCSS | resources.Minify | resources.Fingerprint "sha512") }}
{{ else }}
{{ .Scratch.Set "sass" ($sass | resources.ToCSS $options | resources.Minify | resources.Fingerprint "sha512") }}
{{ end }}
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>
    {{ if (eq .Page.Kind "taxonomy") }}
    Posts tagged with
    {{ end }}
    {{ .Title }}
    {{ if (and $.Site.Params.includeAuthorInTitle (in (slice "page" "taxonomy") .Page.Kind)) }} | {{ $.Site.Params.author }} {{ end }}
  </title>
  <link rel="stylesheet" href='{{ (.Scratch.Get "sass").Permalink }}' integrity='{{ (.Scratch.Get "sass").Data.Integrity }}'>
  <link rel="canonical" href="{{ .Permalink }}">
  {{ with $.Site.Home.OutputFormats.Get "rss" -}}
    <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" title="{{ $.Site.Title }}">
  {{ end -}}
  {{ partial "meta.html" . }}
</head>