2022-02-04 00:19:26 +00:00
|
|
|
<head>
|
2021-05-06 18:59:30 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2022-03-04 21:55:39 +00:00
|
|
|
<link href="https://seirdy.one{{ .RelPermalink }}" rel="canonical">
|
|
|
|
<link href="https://seirdy.one/webmentions/receive" rel="webmention">
|
2022-03-15 20:47:42 +00:00
|
|
|
{{ if or (eq site.BaseURL "https://seirdy.one/") (in site.BaseURL "wgq3bd2kqoybhstp77i3wrzbfnsyd27wt34psaja4grqiezqircorkyd.onion") }}
|
2022-03-04 21:55:39 +00:00
|
|
|
<!-- IDC how much content is extracted from my pages, go knock yourself out. huge images, long snippets, whatever. -->
|
2022-03-08 19:13:05 +00:00
|
|
|
<meta name="robots" content="index,follow,max-image-preview:large,max-snippet=-1">
|
2022-03-15 20:47:42 +00:00
|
|
|
{{ end }}
|
2022-03-08 19:13:05 +00:00
|
|
|
<title>{{ .Title }}{{ if and (lt (len .Title) 66) (ne .RelPermalink "/") }} - Seirdy{{ end }}</title>
|
2021-05-06 18:59:30 +00:00
|
|
|
<meta name="description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
2022-03-01 00:00:05 +00:00
|
|
|
<meta content="{{ .Site.Author.name }}" name="author">
|
|
|
|
<meta property="article:author" content="{{ .Site.Author.name }}">
|
2022-03-08 19:13:05 +00:00
|
|
|
{{ if gt .Date 0 -}}
|
2022-03-01 00:00:05 +00:00
|
|
|
<meta property="article:published_time" content="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
2022-03-08 19:13:05 +00:00
|
|
|
{{ end -}}
|
2022-03-01 00:00:05 +00:00
|
|
|
{{ if lt .Date .Lastmod -}}
|
|
|
|
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
|
2022-03-11 06:51:30 +00:00
|
|
|
{{- end -}}
|
2022-03-11 05:27:40 +00:00
|
|
|
<!--the Tor Browser's safest setting disables SVGs but still downloads them to avoid fingerprinting-->
|
2022-03-15 20:47:42 +00:00
|
|
|
{{ if not (in site.BaseURL ".onion") -}}
|
2022-03-04 21:55:39 +00:00
|
|
|
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
|
|
|
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml">` $icon_svg.RelPermalink | safeHTML }}
|
2022-03-11 06:51:30 +00:00
|
|
|
{{- end }}
|
2021-10-04 19:30:43 +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 -}}
|
2021-06-05 00:29:05 +00:00
|
|
|
{{ $favicon := resources.Get "/favicon.png" -}}
|
|
|
|
{{ $favicon_base64 := $favicon.Content | base64Encode }}
|
2021-10-04 19:30:43 +00:00
|
|
|
{{ printf `<link rel="icon" sizes="32x32" href="data:image/png;base64,%s" type="image/png">` $favicon_base64 | safeHTML -}}
|
2021-06-28 02:01:11 +00:00
|
|
|
<!-- Why does apple do this -->
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
2021-10-22 01:23:59 +00:00
|
|
|
<meta name="color-scheme" content="light dark">
|
2022-03-01 00:00:05 +00:00
|
|
|
<meta name="theme-color" content="#0d0d0d" media="(prefers-color-scheme:dark)">
|
|
|
|
<meta name="theme-color" content="#fff" media="(prefers-color-scheme:light)">
|
|
|
|
<!-- webmanifest defines even more icons. This is getting ridiculous -->
|
|
|
|
{{- $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}}
|
|
|
|
{{- printf `<link href="%s" rel="manifest">` $webmanifest.RelPermalink | safeHTML }}
|
2022-03-15 20:47:42 +00:00
|
|
|
<link rel="alternate" type="application/rss+xml" href="{{ site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}">
|
2022-02-16 05:42:24 +00:00
|
|
|
<!-- inline CSS; remember to allow it with a hash in the CSP -->
|
2022-03-01 00:00:05 +00:00
|
|
|
{{- $resources := slice -}}
|
|
|
|
{{- $resources = $resources | append (resources.Get "/css/main.css") -}}
|
2021-05-06 18:59:30 +00:00
|
|
|
{{ $dark := .Site.Params.dark | default "auto" -}}
|
2022-03-01 00:00:05 +00:00
|
|
|
{{- if not (eq $dark "off") -}}
|
2021-05-06 18:59:30 +00:00
|
|
|
{{ $resources = $resources | append (resources.Get "css/dark.css" | resources.ExecuteAsTemplate "dark.css" .) -}}
|
2022-03-01 00:00:05 +00:00
|
|
|
{{- end -}}
|
|
|
|
{{- $css := $resources | resources.Concat "css/style.css" | minify -}}
|
2021-06-04 23:44:43 +00:00
|
|
|
<style>{{ $css.Content | safeCSS }}</style>
|
2021-05-06 18:59:30 +00:00
|
|
|
<meta property="og:title" content="{{ .Title }}">
|
|
|
|
<meta property="og:site_name" content="{{ $.Site.Title }}">
|
2022-03-09 23:02:21 +00:00
|
|
|
{{- if not (or (ne "page" .Kind) (eq .RelPermalink "/bookmarks.html") (eq .RelPermalink "/posts.html")) }}
|
2021-05-06 18:59:30 +00:00
|
|
|
<meta property="og:type" content="article">
|
|
|
|
{{- end -}}
|
|
|
|
<!-- ANOTHER meta image?! When will it end? -->
|
2021-06-12 22:22:11 +00:00
|
|
|
{{ $og_image := resources.Get "/favicon512.png" | resources.Fingerprint "md5" -}}
|
2021-05-06 18:59:30 +00:00
|
|
|
{{ printf `<meta property="og:image" content="%s">` $og_image.Permalink | safeHTML }}
|
|
|
|
<meta property="og:image:type" content="image/png">
|
2021-08-30 22:10:50 +00:00
|
|
|
<meta property="og:image:height" content="512"><meta property="og:image:width" content="512">
|
2021-10-22 01:23:59 +00:00
|
|
|
<meta property="og:image:alt" content="White-on-black colon and semicolon">
|
2021-05-06 18:59:30 +00:00
|
|
|
<meta property="og:url" content="https://seirdy.one{{ .RelPermalink }}">
|
|
|
|
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
|
|
|
{{ hugo.Generator }}
|
2022-02-04 00:19:26 +00:00
|
|
|
</head>
|