diff --git a/layouts/_partials/seo-tags/twitter-cards.html b/layouts/_partials/seo-tags/twitter-cards.html index 48d9dcb..b2c716a 100644 --- a/layouts/_partials/seo-tags/twitter-cards.html +++ b/layouts/_partials/seo-tags/twitter-cards.html @@ -1,3 +1,7 @@ +{{/* we do not need to duplicate what's already covered by OpenGraph tags + * see: https://demo.bbaovanc.com/test/remove-twitter-tags/blog/swapfile-guide/ + * so, no twitter:image/title/description + */}} {{ $images := $.Resources.ByType "image" }} {{ $featured := $images.GetMatch "*feature*" }} {{ if not $featured }} @@ -17,13 +21,10 @@ {{ else }} {{ end }} - - +{{ else }} + {{ end }} - - - {{ with .Site.Params.social.twitter }} {{ end }}