From 1782aeeda6e79f698c79899a9194f515e9da1134 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Mon, 6 Jun 2022 08:49:11 -0700 Subject: [PATCH] Remove apple-touch-icon, add webfinger --- assets/apple-touch-icon.png | 1 - assets/favicon192.png | 1 + assets/manifest.webmanifest | 2 +- layouts/_default/404.html | 2 +- layouts/_default/list.atom.xml | 4 ++-- layouts/partials/head.html | 2 +- .../{apple-touch-icon.png => favicon192.png} | Bin static/webfinger.json | 19 ++++++++++++++++++ 8 files changed, 25 insertions(+), 6 deletions(-) delete mode 120000 assets/apple-touch-icon.png create mode 120000 assets/favicon192.png rename static/{apple-touch-icon.png => favicon192.png} (100%) create mode 100644 static/webfinger.json diff --git a/assets/apple-touch-icon.png b/assets/apple-touch-icon.png deleted file mode 120000 index 866536d..0000000 --- a/assets/apple-touch-icon.png +++ /dev/null @@ -1 +0,0 @@ -../static/apple-touch-icon.png \ No newline at end of file diff --git a/assets/favicon192.png b/assets/favicon192.png new file mode 120000 index 0000000..8b7300e --- /dev/null +++ b/assets/favicon192.png @@ -0,0 +1 @@ +../static/favicon192.png \ No newline at end of file diff --git a/assets/manifest.webmanifest b/assets/manifest.webmanifest index 0b0bef7..4b3f135 100644 --- a/assets/manifest.webmanifest +++ b/assets/manifest.webmanifest @@ -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" -}} diff --git a/layouts/_default/404.html b/layouts/_default/404.html index effdbf5..3d26134 100644 --- a/layouts/_default/404.html +++ b/layouts/_default/404.html @@ -20,7 +20,7 @@ {{ $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" }} +{{ $icon_192 := resources.Get "/favicon192.png" | resources.Fingerprint "md5" }} {{- printf `` $icon_192.RelPermalink | safeHTML -}} diff --git a/layouts/_default/list.atom.xml b/layouts/_default/list.atom.xml index b7886c4..1d8ffed 100644 --- a/layouts/_default/list.atom.xml +++ b/layouts/_default/list.atom.xml @@ -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" -}}