diff --git a/layouts/partials/head-meta.html b/layouts/partials/head-meta.html index 7c81769..3d130ab 100644 --- a/layouts/partials/head-meta.html +++ b/layouts/partials/head-meta.html @@ -2,7 +2,7 @@ {{ partial "opengraph.html" . }} -{{ template "_internal/twitter_cards.html" . }} +{{ partial "twitter_cards.html" . }} {{- with .Site.Params.google_verify_meta -}} diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html new file mode 100644 index 0000000..f658a4a --- /dev/null +++ b/layouts/partials/twitter_cards.html @@ -0,0 +1,17 @@ +{{ if .IsPage }} +{{ with .Params.images }} + + + +{{ else }} + +{{ end }} + + + + +{{ with .Site.Social.twitter }}{{ end }} +{{ with .Site.Social.twitter_domain }}{{ end }} +{{ range .Site.Authors }} + {{ with .twitter }}{{ end }} +{{ end }}{{ end }}