From 19520825bb6054fac8e236bf0f1fb628649e3e5e Mon Sep 17 00:00:00 2001 From: rohan kumar Date: Mon, 14 Dec 2020 15:15:40 -0800 Subject: [PATCH] Icons 2: electric boogaloo - More sizes - webmanifest file for even more versions - symlink icons instead of copying them; fewer binaries in the repo. --- assets/apple-touch-icon.png | Bin 785 -> 30 bytes assets/favicon.png | Bin 176 -> 21 bytes assets/mask.svg | 2 +- static/apple-touch-icon.png | Bin 0 -> 785 bytes static/favicon.svg | 1 + static/manifest.webmanifest | 16 +++++++++++++ static/mask.svg | 1 + themes/etch-custom/layouts/partials/head.html | 21 ++++++++++-------- 8 files changed, 31 insertions(+), 10 deletions(-) mode change 100644 => 120000 assets/apple-touch-icon.png mode change 100644 => 120000 assets/favicon.png mode change 100644 => 120000 assets/mask.svg create mode 100644 static/apple-touch-icon.png create mode 100644 static/favicon.svg create mode 100644 static/manifest.webmanifest create mode 100644 static/mask.svg diff --git a/assets/apple-touch-icon.png b/assets/apple-touch-icon.png deleted file mode 100644 index 256e20112bc5713073b9aad16408c330c482e6f2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 785 zcmV+s1Md8ZP)wd@!8JuX=p@4+iv)*U|Eeg<6|(?H7DnGKrGQfm-P^9h?Lfs2(K`Z{<^-{nG6Z z5ItU%Gym1fh~+@BK-;TwmyG@`*i$T2R%PGp--4!MfsVpzURAePTQDHgBB%>UHI9R< zYJpyc<(wwBIHydruoITwYx2}Fh$6OePm?Fk4yvXo<;7_+jf3xZ(LurtYmj%{6y^scUca`=5(nh+b=8!>Moy}E>zwg z>)+TiX4@^EedVZqj*{Ow-k3A~1VIv+?z2IdePb71h3kd=m?b`6c=+1)_#8g#ym=aH zpm6-N^W!%PcmMzZ0NeqD%a(+~EAL!*NtccZ#c$WS_?0f-#UCKzPbl$6p!73V{2{Kl z5+1F;l~CSn$1B0XJ?wau*4^>id`r!J4^lN|ISx{_mN{YSrD%?`TFZKSzhyq?tbCnf zK*4JYW=v5UiqjFtfjT6bnEms*j`m|N?xmbCsLQzCXttw9_7uuX9F{&0e(@8(dNhxF zv#xDN+eki=axiu|XDLdjy4drA@5W5-Mjj0|eLYb}<#85-(l=;Gms7S&=dgC|+OkAO%bgI4-&ZNO8 zvms`GS@*pa?B~sEmReuX!F-XblJ@6KyQ!!H?^oRursn|w00000aBuhvhh?qu_z#Te P00000NkvXXu0mjf!v1lQ diff --git a/assets/apple-touch-icon.png b/assets/apple-touch-icon.png new file mode 120000 index 0000000..866536d --- /dev/null +++ b/assets/apple-touch-icon.png @@ -0,0 +1 @@ +../static/apple-touch-icon.png \ No newline at end of file diff --git a/assets/favicon.png b/assets/favicon.png deleted file mode 100644 index 5f20abb3136d421deeea983abb75144f42cc1ff9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvp#Yx{S0MfG-#>YI`I?%VW5mdKI;Vst0J04=SO5S3 diff --git a/assets/favicon.png b/assets/favicon.png new file mode 120000 index 0000000..6b404a2 --- /dev/null +++ b/assets/favicon.png @@ -0,0 +1 @@ +../static/favicon.png \ No newline at end of file diff --git a/assets/mask.svg b/assets/mask.svg deleted file mode 100644 index d1fc9b9..0000000 --- a/assets/mask.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/assets/mask.svg b/assets/mask.svg new file mode 120000 index 0000000..7e83a11 --- /dev/null +++ b/assets/mask.svg @@ -0,0 +1 @@ +../static/mask.svg \ No newline at end of file diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..256e20112bc5713073b9aad16408c330c482e6f2 GIT binary patch literal 785 zcmV+s1Md8ZP)wd@!8JuX=p@4+iv)*U|Eeg<6|(?H7DnGKrGQfm-P^9h?Lfs2(K`Z{<^-{nG6Z z5ItU%Gym1fh~+@BK-;TwmyG@`*i$T2R%PGp--4!MfsVpzURAePTQDHgBB%>UHI9R< zYJpyc<(wwBIHydruoITwYx2}Fh$6OePm?Fk4yvXo<;7_+jf3xZ(LurtYmj%{6y^scUca`=5(nh+b=8!>Moy}E>zwg z>)+TiX4@^EedVZqj*{Ow-k3A~1VIv+?z2IdePb71h3kd=m?b`6c=+1)_#8g#ym=aH zpm6-N^W!%PcmMzZ0NeqD%a(+~EAL!*NtccZ#c$WS_?0f-#UCKzPbl$6p!73V{2{Kl z5+1F;l~CSn$1B0XJ?wau*4^>id`r!J4^lN|ISx{_mN{YSrD%?`TFZKSzhyq?tbCnf zK*4JYW=v5UiqjFtfjT6bnEms*j`m|N?xmbCsLQzCXttw9_7uuX9F{&0e(@8(dNhxF zv#xDN+eki=axiu|XDLdjy4drA@5W5-Mjj0|eLYb}<#85-(l=;Gms7S&=dgC|+OkAO%bgI4-&ZNO8 zvms`GS@*pa?B~sEmReuX!F-XblJ@6KyQ!!H?^oRursn|w00000aBuhvhh?qu_z#Te P00000NkvXXu0mjf!v1lQ literal 0 HcmV?d00001 diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..b977441 --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/manifest.webmanifest b/static/manifest.webmanifest new file mode 100644 index 0000000..178b5dd --- /dev/null +++ b/static/manifest.webmanifest @@ -0,0 +1,16 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "https://seirdy.one/apple-touch-icon.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "https://seirdy.one/favicon.svg", + "sizes": "193x193", + "type": "image/svg" + } + ] +} diff --git a/static/mask.svg b/static/mask.svg new file mode 100644 index 0000000..d1fc9b9 --- /dev/null +++ b/static/mask.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/themes/etch-custom/layouts/partials/head.html b/themes/etch-custom/layouts/partials/head.html index 6a4b962..d4952e5 100644 --- a/themes/etch-custom/layouts/partials/head.html +++ b/themes/etch-custom/layouts/partials/head.html @@ -4,20 +4,23 @@ {{ with .Site.Params.description -}} {{ end }} - {{- $favicon := resources.Get "/favicon.png" | resources.Fingerprint "sha384" -}} - {{ printf `` $favicon.RelPermalink $favicon.Data.Integrity | safeHTML }} - + {{- $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "sha384" -}} + {{ printf `` $icon_192.RelPermalink $icon_192.Data.Integrity | safeHTML }} + {{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "sha384" -}} + {{ printf `` $favicon.RelPermalink $favicon.Data.Integrity | safeHTML -}} + + {{ printf `` $icon_192.RelPermalink $icon_192.Data.Integrity | safeHTML }} + {{ $mask_icon := resources.Get "/mask.svg" | resources.Fingerprint "sha384" -}} + {{ printf `` $mask_icon.RelPermalink $mask_icon.Data.Integrity | safeHTML }} + + {{ if eq .Site.BaseURL "https://envs.net/~seirdy/" -}} {{ else -}} {{ end -}} - - {{- $apple_icon := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "sha384" -}} - {{ printf `` $apple_icon.RelPermalink $apple_icon.Data.Integrity | safeHTML }} - {{- $mask_icon := resources.Get "/mask.svg" | resources.Fingerprint "sha384" -}} - {{ printf `` $mask_icon.RelPermalink $mask_icon.Data.Integrity | safeHTML }} {{ $resources := slice -}} {{ $resources = $resources | append (resources.Get "/css/main.css") -}} {{ $resources = $resources | append (resources.Get "/css/narrow.css") -}}