diff options
Diffstat (limited to 'tpl/tplimpl/embedded/templates/twitter_cards.html')
-rw-r--r-- | tpl/tplimpl/embedded/templates/twitter_cards.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/embedded/templates/twitter_cards.html b/tpl/tplimpl/embedded/templates/twitter_cards.html index fc4895b56..cbe2430bc 100644 --- a/tpl/tplimpl/embedded/templates/twitter_cards.html +++ b/tpl/tplimpl/embedded/templates/twitter_cards.html @@ -4,7 +4,7 @@ {{ else -}} {{- $images := $.Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} -{{- $featured := cond (ne $featured nil) $featured ($images.GetMatch "{*cover*,*thumbnail*}") -}} +{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:image" content="{{ $featured.Permalink }}"/> |