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 }}