From 59bc7931521ba3401d05b61efaf99a97edd580a3 Mon Sep 17 00:00:00 2001 From: rohan kumar Date: Tue, 15 Dec 2020 23:15:18 -0800 Subject: [PATCH] Asset organization - Use the recommended resolution for the open graph image - Since the mask-icon is onl served as a cache-busted asset and never served as a plain link from the site root, move it to assets/ - Cache-bust the webmanifest and put it in assets/ --- {static => assets}/manifest.webmanifest | 0 assets/mask_apple.svg | 2 +- assets/open_graph.png | Bin 0 -> 3287 bytes static/mask_apple.svg | 1 - themes/etch-custom/layouts/partials/head.html | 16 +++++++++------- 5 files changed, 10 insertions(+), 9 deletions(-) rename {static => assets}/manifest.webmanifest (100%) mode change 120000 => 100644 assets/mask_apple.svg create mode 100644 assets/open_graph.png delete mode 100644 static/mask_apple.svg diff --git a/static/manifest.webmanifest b/assets/manifest.webmanifest similarity index 100% rename from static/manifest.webmanifest rename to assets/manifest.webmanifest diff --git a/assets/mask_apple.svg b/assets/mask_apple.svg deleted file mode 120000 index 4b501d7..0000000 --- a/assets/mask_apple.svg +++ /dev/null @@ -1 +0,0 @@ -../static/mask_apple.svg \ No newline at end of file diff --git a/assets/mask_apple.svg b/assets/mask_apple.svg new file mode 100644 index 0000000..d1fc9b9 --- /dev/null +++ b/assets/mask_apple.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/open_graph.png b/assets/open_graph.png new file mode 100644 index 0000000000000000000000000000000000000000..360181bba183a03972795fd1d6c3a94f1be3d18c GIT binary patch literal 3287 zcmchYXE+-Q7ssj5QmbZAt2L{o(u&4xs1Y+%&8zl~7^OCss+Oi2JE&E(l~A!qMBL;p zk=i9zY28qp+HGUJ?$`Iz{q&v>=bY#K&v~Bn>Gw~ASsHV5ig7YAF>ymp?%6OgvErDR z&OK&jIhzm=KEY>27G`d1cveqOPvLO5h=>TCPFGV?+uPeKDJgmO?3smy#lXNoOH0d` zB8M6i6Bhz{4`LfNy*@h>?DA2F>D#w_5r&*Nd;i5d;zjx#;qX$jLsqBBPM~pBD!?Y9-{1d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asN9@ d``@h-qLd-+4wmg?&*C2mYG`@ygT7nxe*tIK4yXVC literal 0 HcmV?d00001 diff --git a/static/mask_apple.svg b/static/mask_apple.svg deleted file mode 100644 index d1fc9b9..0000000 --- a/static/mask_apple.svg +++ /dev/null @@ -1 +0,0 @@ - \ 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 4b0df87..b10ebd6 100644 --- a/themes/etch-custom/layouts/partials/head.html +++ b/themes/etch-custom/layouts/partials/head.html @@ -14,12 +14,13 @@ {{ printf `` $icon_192.RelPermalink | safeHTML }} {{ $mask_icon := resources.Get "/mask_apple.svg" | resources.Fingerprint "md5" -}} {{ printf `` $mask_icon.RelPermalink | safeHTML }} - - + {{ $webmanifest := resources.Get "/manifest.webmanifest" | resources.Fingerprint "md5" -}} + {{ printf `` $webmanifest.RelPermalink | safeHTML }} + {{ if eq .Site.BaseURL "https://envs.net/~seirdy/" -}} {{ else -}} - + {{ end -}} {{ $resources := slice -}} {{ $resources = $resources | append (resources.Get "/css/main.css") -}} @@ -48,9 +49,10 @@ {{- else }} {{- end }} - {{ printf `` $icon_192.Permalink | safeHTML }} + {{ $og_image := resources.Get "/open_graph.png" | resources.Fingerprint "md5" -}} + {{ printf `` $og_image.Permalink | safeHTML }} - - - + + +