1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +00:00

Remove apple-touch-icon, add webfinger

This commit is contained in:
Rohan Kumar 2022-06-06 08:49:11 -07:00
parent 6d09030988
commit 1782aeeda6
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
8 changed files with 25 additions and 6 deletions

View file

@ -1 +0,0 @@
../static/apple-touch-icon.png

1
assets/favicon192.png Symbolic link
View file

@ -0,0 +1 @@
../static/favicon192.png

View file

@ -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" }}
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}

View file

@ -20,7 +20,7 @@
{{ $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 }}
{{- 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 -}}
<meta name="color-scheme" content="light dark" />
<meta name="theme-color" content="#191919" media="(prefers-color-scheme:dark)" />

View file

@ -1,6 +1,6 @@
{{- $pages := (where site.RegularPages "Section" .Section) -}}
{{- if .IsHome }}
{{- $pages = where .Site.RegularPages "Section" "" -}}
{{- $pages = .Site.RegularPages -}}
{{ end -}}
{{- $type := "article" -}}
{{- $period := "daily" -}}
@ -9,7 +9,7 @@
{{- $period = "hourly" -}}
{{- end -}}
{{- $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"?>
<feed
xmlns="http://www.w3.org/2005/Atom"

View file

@ -51,7 +51,7 @@
{{ $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 }}
{{- 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 -}}
<meta name="color-scheme" content="light dark" />
<meta name="format-detection" content="telephone=no" /><!-- Why does apple do this -->

View file

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 638 B

19
static/webfinger.json Normal file
View 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"
}
]
}