From 18863075c55167cd07ddd7a1cd11e6a0f0223dae Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 21 Feb 2017 15:03:17 +0200 Subject: [PATCH] Revert to Hugo's own Twitter Cards partial I had overridden it in the theme to improve the metadata generated by it. Hugo has accepted the changes upstream so we can use theirs now. See: https://github.com/spf13/hugo/pull/2984 --- layouts/partials/head-meta.html | 2 +- layouts/partials/twitter_cards.html | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 layouts/partials/twitter_cards.html diff --git a/layouts/partials/head-meta.html b/layouts/partials/head-meta.html index 3d130ab..7c81769 100644 --- a/layouts/partials/head-meta.html +++ b/layouts/partials/head-meta.html @@ -2,7 +2,7 @@ {{ partial "opengraph.html" . }} -{{ partial "twitter_cards.html" . }} +{{ template "_internal/twitter_cards.html" . }} {{- with .Site.Params.google_verify_meta -}} diff --git a/layouts/partials/twitter_cards.html b/layouts/partials/twitter_cards.html deleted file mode 100644 index 56b0efe..0000000 --- a/layouts/partials/twitter_cards.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ if .IsPage }} -{{ with .Params.images }} - - - -{{ else }} - -{{ end }} - - - - -{{ with .Site.Social.twitter }}{{ end }} -{{ range .Site.Authors }} - {{ with .twitter }}{{ end }} -{{ end }}{{ end }}