From cd5a89ba3a1ac2084c7f7dcb24a8ec2011f7f8f7 Mon Sep 17 00:00:00 2001 From: willstocks <43744514+willstocks@users.noreply.github.com> Date: Fri, 3 Apr 2020 10:59:22 +0100 Subject: [PATCH] Implement multi-layer fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cover image for anything that's not home (with fallback to favicon where cover is not set), and for anything that is home we use the favicon with fallback to the default color block Co-Authored-By: Radek KozieĊ‚ --- layouts/partials/head.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0385369..968876e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -40,7 +40,15 @@ - +{{ if and (ne .IsHome) (isset .Params "cover") }} + +{{ else }} + {{ if isset $.Site.Params "favicon" }} + + {{ else }} + + {{ end }} +{{ end }} {{ range .Params.categories }}