mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Add meta tag for color scheme
Done so that https://developer.chrome.com/blog/auto-dark-theme won't break images.
This commit is contained in:
parent
822cc31d5c
commit
48cd2d7ad1
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
<!-- webmanifest defines even more icons. This is getting ridiculous -->
|
<!-- webmanifest defines even more icons. This is getting ridiculous -->
|
||||||
{{- $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}}
|
{{- $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}}
|
||||||
{{- printf `<link rel="manifest" href="%s">` $webmanifest.RelPermalink | safeHTML }}
|
{{- printf `<link rel="manifest" href="%s">` $webmanifest.RelPermalink | safeHTML }}
|
||||||
|
<meta name="color-scheme" content="light dark">
|
||||||
<meta name="theme-color" content="#0d0d0d" media="(prefers-color-scheme: dark)">
|
<meta name="theme-color" content="#0d0d0d" media="(prefers-color-scheme: dark)">
|
||||||
<meta name="theme-color" content="#fff" media="(prefers-color-scheme: light)">
|
<meta name="theme-color" content="#fff" media="(prefers-color-scheme: light)">
|
||||||
<link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}">
|
<link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}">
|
||||||
|
@ -53,6 +54,7 @@
|
||||||
{{ printf `<meta property="og:image" content="%s">` $og_image.Permalink | safeHTML }}
|
{{ printf `<meta property="og:image" content="%s">` $og_image.Permalink | safeHTML }}
|
||||||
<meta property="og:image:type" content="image/png">
|
<meta property="og:image:type" content="image/png">
|
||||||
<meta property="og:image:height" content="512"><meta property="og:image:width" content="512">
|
<meta property="og:image:height" content="512"><meta property="og:image:width" content="512">
|
||||||
|
<meta property="og:image:alt" content="White-on-black colon and semicolon">
|
||||||
<meta property="og:url" content="https://seirdy.one{{ .RelPermalink }}">
|
<meta property="og:url" content="https://seirdy.one{{ .RelPermalink }}">
|
||||||
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
<meta property="og:description" content="{{ if .Params.description }}{{ .Params.description }}{{ else }}{{ .Site.Params.Description }}{{ end }}">
|
||||||
<meta property="article:author" content="{{ .Site.Author.name }}">
|
<meta property="article:author" content="{{ .Site.Author.name }}">
|
||||||
|
|
Loading…
Reference in a new issue