|
1 | 1 | <meta charset="utf-8" /> |
2 | 2 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
3 | | -{{- $pageTitle := .Title | default .Site.Title -}} |
4 | | -{{- $fullTitle := cond .IsHome .Site.Title (printf "%s · %s" $pageTitle .Site.Title) -}} |
5 | | -{{- $rawDescription := .Params.description | default .Summary | default .Site.Params.description -}} |
| 3 | +{{- $siteTitle := .Site.Title | default "Site" -}} |
| 4 | +{{- $pageTitle := .Title | default $siteTitle -}} |
| 5 | +{{- $tagline := .Site.Params.tagline | default $siteTitle -}} |
| 6 | +{{- $fullTitle := "" -}} |
| 7 | +{{- if .IsHome -}} |
| 8 | + {{- $fullTitle = printf "%s · %s" $siteTitle $tagline -}} |
| 9 | +{{- else if or (eq .Kind "taxonomy") (eq .Kind "term") -}} |
| 10 | + {{- $termTitle := .Title | default $pageTitle -}} |
| 11 | + {{- if eq .Kind "term" -}} |
| 12 | + {{- $termTitle = .Data.Term | default $termTitle -}} |
| 13 | + {{- end -}} |
| 14 | + {{- $fullTitle = printf "Tag: %s · %s" $termTitle $siteTitle -}} |
| 15 | +{{- else -}} |
| 16 | + {{- $fullTitle = printf "%s · %s" $pageTitle $siteTitle -}} |
| 17 | +{{- end -}} |
| 18 | +{{- $rawDescription := "" -}} |
| 19 | +{{- if .IsHome -}} |
| 20 | + {{- $rawDescription = .Site.Params.descriptionLong | default .Site.Params.description -}} |
| 21 | +{{- else -}} |
| 22 | + {{- $rawDescription = .Params.description | default .Summary | default .Site.Params.description -}} |
| 23 | +{{- end -}} |
6 | 24 | {{- $description := "" -}} |
7 | 25 | {{- if $rawDescription -}} |
8 | | - {{- $description = ($rawDescription | plainify | htmlUnescape | truncate 160) -}} |
| 26 | + {{- $description = ($rawDescription | plainify | htmlUnescape | truncate 220) -}} |
9 | 27 | {{- end -}} |
10 | 28 | {{- $keywordsValue := "" -}} |
11 | | -{{- if .Params.keywords -}} |
12 | | - {{- if reflect.IsSlice .Params.keywords -}} |
13 | | - {{- $keywordsValue = delimit .Params.keywords ", " -}} |
14 | | - {{- else -}} |
15 | | - {{- $keywordsValue = .Params.keywords -}} |
16 | | - {{- end -}} |
17 | | -{{- else if .Site.Params.keywords -}} |
| 29 | +{{- $isAboutPage := and .IsPage (eq .Section "over-mij") -}} |
| 30 | +{{- if and (or .IsHome $isAboutPage) .Site.Params.keywords -}} |
18 | 31 | {{- if reflect.IsSlice .Site.Params.keywords -}} |
19 | 32 | {{- $keywordsValue = delimit .Site.Params.keywords ", " -}} |
20 | 33 | {{- else -}} |
|
31 | 44 | <link rel="canonical" href="{{ .Permalink }}"> |
32 | 45 | <link rel="icon" type="image/svg+xml" href="/favicon.svg"> |
33 | 46 | <link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> |
34 | | -<link rel="icon" type="image/x-icon" href="/favicon.ico"> |
| 47 | +<link rel="shortcut icon" href="/favicon.ico"> |
35 | 48 | <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> |
36 | 49 | <link rel="manifest" href="/site.webmanifest"> |
37 | 50 | {{ template "_internal/opengraph.html" . }} |
|
99 | 112 |
|
100 | 113 | {{ $css := resources.Get "css/main.css" | css.PostCSS }} |
101 | 114 | {{ if hugo.IsProduction }} |
102 | | - {{ $css = $css | minify | fingerprint }} |
103 | | -{{ else }} |
104 | | - {{ $css = $css | fingerprint }} |
| 115 | + {{ $css = $css | minify }} |
105 | 116 | {{ end }} |
106 | | -<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $css.Data.Integrity }}" crossorigin="anonymous" /> |
| 117 | +{{ $css = $css | fingerprint }} |
| 118 | +<link rel="stylesheet" href="{{ $css.RelPermalink }}"{{ with $css.Data.Integrity }} integrity="{{ . }}" crossorigin="anonymous"{{ end }} /> |
0 commit comments