32 lines
2.2 KiB
HTML
32 lines
2.2 KiB
HTML
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{{ hugo.Generator }}
|
|
<link rel="canonical" href="{{ .Permalink }}" />
|
|
<link rel="dns-prefetch" href="{{ .Site.Params.cdnURL }}">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ if hugo.IsServer }}{{ "apple-touch-icon.png" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/apple-touch-icon.png{{ end }}">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ if hugo.IsServer }}{{ "favicon-32x32.png" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/favicon-32x32.png{{ end }}">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ if hugo.IsServer }}{{ "favicon-16x16.png" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/favicon-16x16.png{{ end }}">
|
|
<link rel="mask-icon" href="{{ if hugo.IsServer }}{{ "safari-pinned-tab.svg" | absURL }}{{ else }}{{ .Site.Params.cdnURL }}/safari-pinned-tab.svg{{ end }}" color="{{ .Site.Params.hexcolour }}">
|
|
<meta name="keywords" content="{{ .Site.Params.keywords }}">
|
|
<meta name="msapplication-TileColor" content="{{ .Site.Params.hexcolour}}">
|
|
<meta name="theme-color" content="{{ .Site.Params.hexcolour}}">
|
|
{{ template "_internal/opengraph.html" . }}
|
|
{{ $cond := "" }}
|
|
{{ if .IsHome }}
|
|
{{ with .Site.Params.description }}
|
|
{{ $cond = . | plainify }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $cond = trim (.Summary | plainify | htmlUnescape) "\n\r" | default .Title }}
|
|
{{ end }}
|
|
<meta name="description" content="{{ $cond }}">
|
|
<meta name="author" content="{{ .Params.author | default "Unknown" }}">
|
|
{{ $cssOpts := (dict "targetPath" "css/styles.css" "enableSourceMap" hugo.IsServer ) }}
|
|
{{ $styles := resources.Get "scss/template-styles.scss" | resources.ExecuteAsTemplate "style.styles.css" . | toCSS $cssOpts }}
|
|
{{ if hugo.IsServer }}
|
|
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen">
|
|
{{ else }}
|
|
{{ $minifiedStyles := $styles | minify | fingerprint }}
|
|
<link rel="stylesheet" href="{{ .Site.Params.cdnURL }}{{ $minifiedStyles.RelPermalink }}" integrity="{{ $minifiedStyles.Data.Integrity }}" crossorigin="anonymous" media="screen" />
|
|
{{ end }}
|
|
{{ partial "noscript.html" . }} |