From 4ef42a15b2f0e8ffdefd1f9cddc5fd4dc4f26806 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 03e93ed..98f284e 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 }}