{{- $canonicalRelPermalink := .RelPermalink | replaceRE "^/~seirdy/" "/" }} {{ if or (eq site.BaseURL site.Params.CanonicalBaseURL) (in site.BaseURL "wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion") -}} {{ end -}} {{ $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}} {{- printf `` $webmanifest.RelPermalink | safeHTML }} {{ .Title }}{{ if and (lt (len .Title) 54) (ne $canonicalRelPermalink "/") }} - Seirdy{{ end }} {{ $description := .Site.Params.Description -}} {{- if .Params.description -}} {{- $description = .Params.Description -}} {{- else if eq $canonicalRelPermalink "/posts.html" -}} {{- $description = "All the posts on Seirdy's Home" -}} {{- end -}} {{ if gt .Date 0 -}} {{ end -}} {{ if lt .Date .Lastmod -}} {{- end -}} {{ if not (in site.BaseURL ".onion") -}} {{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }} {{- printf `` $icon_svg.RelPermalink | safeHTML }} {{- end }} {{ $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 -}} {{- $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 -}} {{ $resources = $resources | append (resources.Get "css/print.css" | resources.ExecuteAsTemplate "print.css" .) -}} {{- $css := $resources | resources.Concat "css/style.css" | minify -}} {{- if not (or (ne "page" .Kind) (eq $canonicalRelPermalink "/bookmarks.html") (eq $canonicalRelPermalink "/posts.html")) }} {{- end -}} {{ $og_image := resources.Get "/favicon512.png" | resources.Fingerprint "md5" -}} {{ printf `` $og_image.Permalink | safeHTML }} {{ hugo.Generator }}