From f7370fee81309e2a8f90dafce16e8a1c1c3ca336 Mon Sep 17 00:00:00 2001 From: Luke Orth Date: Tue, 11 Jul 2023 11:55:14 -0500 Subject: [PATCH] Fixed og_image issues --- layouts/partials/head/meta.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 83a605ba..be53c905 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -34,7 +34,9 @@ {{ else }} {{ $og_image_path = .Site.Params.brand_image }} {{ end }} - {{ $og_image = resources.Get $og_image_path }} + {{ if $og_image_path }} + {{ $og_image = resources.Get $og_image_path }} + {{ end }} {{ end }} {{ with $og_image }} {{ if or ( lt .Width 600 ) ( lt .Height 315 ) }}