diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html index 2fdfd758..36169244 100644 --- a/wowchemy/layouts/partials/site_head.html +++ b/wowchemy/layouts/partials/site_head.html @@ -181,8 +181,9 @@ {{ $has_logo := fileExists "assets/images/logo.png" | or (fileExists "assets/images/logo.svg") }} {{ $og_image := "" }} {{ $twitter_card := "summary_large_image" }} - {{ if (and (eq .Kind "taxonomy") $avatar_image) }} - {{ $og_image = ($avatar_image.Fill "270x270 Center").Permalink }}{{/* Match image proc in About widget. */}} + {{ if (and (eq .Kind "term") $avatar_image) }} + {{/* Match image processing in About widget to prevent generating more images than necessary. */}} + {{ $og_image = ($avatar_image.Fill "270x270 Center").Permalink }} {{ $twitter_card = "summary" }} {{ else if $featured_image }} {{ $og_image = $featured_image.Permalink }}