From 18af67974ac64d5fbee2d80c8d68b42d09c8ec5e Mon Sep 17 00:00:00 2001
From: willstocks <43744514+willstocks@users.noreply.github.com>
Date: Mon, 23 Mar 2020 08:47:31 +0000
Subject: [PATCH 1/2] Only populate og:image with cover if is set
---
layouts/partials/head.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index acbd81a..0385369 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -40,7 +40,7 @@
-
+
{{ range .Params.categories }}
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 2/2] 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 }}