From 7e7d41a648b4a14e6c1d488242725fb174515189 Mon Sep 17 00:00:00 2001 From: Djordje Atlialp Date: Thu, 16 Apr 2020 08:34:42 +0200 Subject: [PATCH] Check whether "series" is set in taxonomies https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/132 --- layouts/partials/head.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5fce626..7e0d573 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,7 +2,7 @@ - + @@ -35,9 +35,12 @@ {{- partial "favicons.html" . }} -{{- template "_internal/schema.html" . }} -{{- template "_internal/opengraph.html" . }} -{{- template "_internal/twitter_cards.html" . }} +{{ template "_internal/schema.html" . }} +{{ template "_internal/twitter_cards.html" . }} + +{{ if isset .Site.Taxonomies "series" }} + {{ template "_internal/opengraph.html" . }} +{{ end }} {{ range .Params.categories }}