From 950041aea9ad4c294d00a359bd21cbf9a29f5b19 Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Sat, 28 Nov 2020 11:11:08 -0500 Subject: [PATCH] Add support for favicons See https://favicon.io/favicon-converter for generating a favicon and the link references to add to the `head` of the HTML template. --- layouts/_default/baseof.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 26eb1b5..7090644 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -15,6 +15,18 @@ {{ block "icons" . }} {{ partial "icons.html" . }} {{ end }} + {{ if (fileExists "static/apple-touch-icon.png") -}} + + {{- end }} + {{ if (fileExists "static/favicon-32x32.png") -}} + + {{- end }} + {{ if (fileExists "static/favicon-16x16.png") -}} + + {{- end }} + {{ if (fileExists "static/site.webmanifest") -}} + + {{- end }} @@ -65,4 +77,4 @@ - \ No newline at end of file +