2020-11-03 23:46:20 +00:00
|
|
|
<head>
|
2020-11-25 08:38:31 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{{ with .Site.Params.description -}}
|
|
|
|
<meta name="description" content="{{ . }}">
|
|
|
|
{{ end }}
|
2020-12-15 07:02:07 +00:00
|
|
|
{{- $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
|
|
|
{{ printf `<link rel="icon" sizes="192x192" href="%s" type="image/png">` $icon_192.RelPermalink | safeHTML }}
|
|
|
|
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
|
|
|
|
{{ printf `<link rel="icon" sizes="32x32" href="%s" type="image/png">` $favicon.RelPermalink | safeHTML -}}
|
2020-12-14 23:15:40 +00:00
|
|
|
<!--apple-touch-icon and mask-icon used to be appple-specific, but now
|
|
|
|
they're pseudo-standards relied upon by other vendors too. See
|
|
|
|
https://html.spec.whatwg.org/multipage/semantics.html#attr-link-sizes-->
|
2020-12-15 07:02:07 +00:00
|
|
|
{{ printf `<link rel="apple-touch-icon" href="%s">` $icon_192.RelPermalink | safeHTML }}
|
|
|
|
{{ $mask_icon := resources.Get "/mask.svg" | resources.Fingerprint "md5" -}}
|
|
|
|
{{ printf `<link rel="mask-icon" href="%s" color="black">` $mask_icon.RelPermalink | safeHTML }}
|
2020-12-14 23:15:40 +00:00
|
|
|
<link rel="manifest" href="{{ .Site.BaseURL }}manifest.webmanifest">
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}"/>
|
2020-11-25 08:38:31 +00:00
|
|
|
{{ if eq .Site.BaseURL "https://envs.net/~seirdy/" -}}
|
|
|
|
<meta name="robots" content="noindex">
|
2020-12-12 10:41:18 +00:00
|
|
|
{{ else -}}
|
2020-11-25 08:38:31 +00:00
|
|
|
<link rel="canonical" href="https://seirdy.one{{ .RelPermalink }}"/>
|
2020-12-12 10:41:18 +00:00
|
|
|
{{ end -}}
|
2020-11-25 08:38:31 +00:00
|
|
|
{{ $resources := slice -}}
|
|
|
|
{{ $resources = $resources | append (resources.Get "/css/main.css") -}}
|
2020-11-26 06:31:28 +00:00
|
|
|
{{ $resources = $resources | append (resources.Get "/css/narrow.css") -}}
|
2020-11-25 08:38:31 +00:00
|
|
|
{{ $dark := .Site.Params.dark | default "auto" -}}
|
|
|
|
{{ if not (eq $dark "off") -}}
|
|
|
|
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
|
|
|
|
{{ end -}}
|
2020-12-12 01:21:34 +00:00
|
|
|
{{ $css := $resources | resources.Concat "css/style.css" | minify | resources.Fingerprint "sha384" -}}
|
|
|
|
{{ printf `<link rel="stylesheet" href="%s" integrity="%s">` $css.RelPermalink $css.Data.Integrity | safeHTML }}
|
2020-11-28 19:11:04 +00:00
|
|
|
{{ if .Params.highlight -}}
|
2020-12-12 01:21:34 +00:00
|
|
|
{{ $css_syntax := resources.Get "/css/syntax.css" | minify | resources.Fingerprint "sha384" }}
|
|
|
|
{{- printf `<link rel="stylesheet" href="%s" integrity="%s">` $css_syntax.RelPermalink $css_syntax.Data.Integrity | safeHTML }}
|
2020-11-28 19:11:04 +00:00
|
|
|
{{ end -}}
|
|
|
|
|
2020-12-01 01:19:33 +00:00
|
|
|
{{ if eq .RelPermalink "/" -}}
|
2020-11-25 08:38:31 +00:00
|
|
|
<title>{{ .Title }}</title>
|
2020-12-01 01:19:33 +00:00
|
|
|
{{ else -}}
|
|
|
|
<title>{{ .Title }} - Seirdy</title>
|
|
|
|
{{ end -}}
|
2020-11-03 23:46:20 +00:00
|
|
|
</head>
|