From baf468a97624d40430dda2111e10c931d8a43e19 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 22 Mar 2023 22:42:44 -0700 Subject: [PATCH] Add fileExists conditions around favicon link tags --- layouts/partials/paige/links.html | 33 ++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index 09788fe5..5e53f5ed 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -1,17 +1,36 @@ {{ $page := . }} - - - +{{ if fileExists "apple-touch-icon.png" }} + +{{ end }} + +{{ if fileExists "favicon-16x16.png" }} + +{{ end }} + +{{ if fileExists "favicon-32x32.png" }} + +{{ end }} {{ if ne (relLangURL "favicon.ico") "/favicon.ico" }} {{ end }} - - - - +{{ if fileExists "favicon.png" }} + +{{ end }} + +{{ if fileExists "favicon.svg" }} + +{{ end }} + +{{ if fileExists "safari-pinned-tab.svg" }} + +{{ end }} + +{{ if fileExists "site.webmanifest" }} + +{{ end }} {{ partial "paige/link.html" (dict "href" "_paige/bootstrap/paige.scss" "page" $page "sass" true) }} {{ partial "paige/link.html" (dict "href" "_paige/bootstrap-icons/bootstrap-icons.css") }}