{{ $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }} {{- printf `` $icon_192.RelPermalink | safeHTML -}} {{ $favicon := resources.Get "/favicon.png" -}} {{ $favicon_base64 := $favicon.Content | base64Encode }} {{ printf `` $favicon_base64 | safeHTML -}} {{ printf `` $icon_192.RelPermalink | safeHTML -}} {{- $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}} {{- printf `` $webmanifest.RelPermalink | safeHTML }} {{ if and (ne .Site.BaseURL "https://seirdy.one/") (ne .Site.BaseURL "http://wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion/") -}} {{ else -}} {{ end -}} {{ $resources := slice -}} {{ $resources = $resources | append (resources.Get "/css/main.css") -}} {{ $dark := .Site.Params.dark | default "auto" -}} {{ if not (eq $dark "off") -}} {{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}} {{ end -}} {{ $css := $resources | resources.Concat "css/style.css" | minify -}} {{- if eq .RelPermalink "/" }} {{ .Title }} {{- else }} {{ .Title }}{{if lt (len .Title) 66 }} - Seirdy{{ end }} {{- end -}} {{- if (eq "page" .Kind) }} {{- else }} {{- end -}} {{ $og_image := resources.Get "/favicon512.png" | resources.Fingerprint "md5" -}} {{ printf `` $og_image.Permalink | safeHTML }} {{ if lt .Date .Lastmod -}} {{ end -}} {{ hugo.Generator }}