From dc29e1dce1450bb0d8de56630b738bdc68ba2a10 Mon Sep 17 00:00:00 2001 From: Yuliya Bagriy Date: Fri, 23 Feb 2024 22:16:26 -0500 Subject: [PATCH] dirty disabling of og images --- layouts/partials/head.html | 2 +- layouts/partials/opengraph.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8e7d42b4..badc82b6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,7 +15,7 @@ {{ if ne .Kind "404" }} {{ partial "opengraph.html" . }} - {{ template "_internal/twitter_cards.html" . }} + {{/* {{ template "_internal/twitter_cards.html" . }} */}} {{ end }} {{ hugo.Generator }} diff --git a/layouts/partials/opengraph.html b/layouts/partials/opengraph.html index c4acd30f..f08ff35e 100644 --- a/layouts/partials/opengraph.html +++ b/layouts/partials/opengraph.html @@ -27,10 +27,11 @@ {{ else -}} {{- with $.Site.Params.images -}} +{{- if not $isArticle }} -{{ end }}{{ end }}{{ end }} +{{ end }}{{ end }}{{ end }}{{ end }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{- if $isArticle }}