mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
Remove apple-touch-icon, add webfinger
This commit is contained in:
parent
6d09030988
commit
1782aeeda6
8 changed files with 25 additions and 6 deletions
|
@ -1 +0,0 @@
|
||||||
../static/apple-touch-icon.png
|
|
1
assets/favicon192.png
Symbolic link
1
assets/favicon192.png
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../static/favicon192.png
|
|
@ -1,4 +1,4 @@
|
||||||
{{- $192png := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
|
{{- $192png := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
||||||
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
||||||
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
||||||
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{ $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 }}
|
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
|
{{ $icon_192 := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
||||||
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="theme-color" content="#191919" media="(prefers-color-scheme:dark)" />
|
<meta name="theme-color" content="#191919" media="(prefers-color-scheme:dark)" />
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{- $pages := (where site.RegularPages "Section" .Section) -}}
|
{{- $pages := (where site.RegularPages "Section" .Section) -}}
|
||||||
{{- if .IsHome }}
|
{{- if .IsHome }}
|
||||||
{{- $pages = where .Site.RegularPages "Section" "" -}}
|
{{- $pages = .Site.RegularPages -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{- $type := "article" -}}
|
{{- $type := "article" -}}
|
||||||
{{- $period := "daily" -}}
|
{{- $period := "daily" -}}
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
{{- $period = "hourly" -}}
|
{{- $period = "hourly" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
{{- $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" -}}
|
||||||
{{- $icon_png := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
{{- $icon_png := resources.Get "/favicon192.png" | resources.Fingerprint "md5" -}}
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<feed
|
<feed
|
||||||
xmlns="http://www.w3.org/2005/Atom"
|
xmlns="http://www.w3.org/2005/Atom"
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
{{ $icon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
{{ $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 }}
|
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml" />` $icon_svg.RelPermalink | safeHTML }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" }}
|
{{ $icon_192 := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }}
|
||||||
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
{{- printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" />` $icon_192.RelPermalink | safeHTML -}}
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<meta name="format-detection" content="telephone=no" /><!-- Why does apple do this -->
|
<meta name="format-detection" content="telephone=no" /><!-- Why does apple do this -->
|
||||||
|
|
Before Width: | Height: | Size: 638 B After Width: | Height: | Size: 638 B |
19
static/webfinger.json
Normal file
19
static/webfinger.json
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"subject": "acct:seirdy@seirdy.one",
|
||||||
|
"aliases": [
|
||||||
|
"mailto:seirdy@seirdy.one",
|
||||||
|
"https://seirdy.one/"
|
||||||
|
],
|
||||||
|
"links": [
|
||||||
|
{
|
||||||
|
"rel": "http://webfinger.net/rel/avatar",
|
||||||
|
"href": "https://seirdy.one/favicon192.png",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rel": "http://webfinger.net/rel/profile-page",
|
||||||
|
"href": "https://seirdy.one/",
|
||||||
|
"type": "text/html"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue