From c0a15b9c5fb8cdbc9c07137d3cf228baa95c6619 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 1 Aug 2020 21:17:40 +0200 Subject: [PATCH] switch back to hugo internal twitter-card --- CHANGELOG.md | 4 +--- layouts/partials/head/microformats.html | 28 +------------------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daf4246..21ec78a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,2 @@ - ENHANCEMENT - - include custom twitter-card metadata and switch to `summary` instead of `summary_large_image` -- INTERNAL - - upgrade CI pipeline to use Hugo v0.74.3 + - switch back to Hugo internal twitter-card template diff --git a/layouts/partials/head/microformats.html b/layouts/partials/head/microformats.html index 4b1a04a..47183f7 100644 --- a/layouts/partials/head/microformats.html +++ b/layouts/partials/head/microformats.html @@ -1,28 +1,2 @@ {{ template "_internal/opengraph.html" . }} - - -{{- with $.Params.images -}} - -{{ else -}} -{{- $images := $.Resources.ByType "image" -}} -{{- $featured := $images.GetMatch "*feature*" -}} -{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} -{{- with $featured -}} - -{{- else -}} -{{- with $.Site.Params.images -}} - -{{- end -}} -{{- end -}} -{{- end }} - - - -{{ with .Site.Social.twitter -}} - -{{ end -}} -{{ range .Site.Authors }} -{{ with .twitter -}} - -{{ end -}} -{{ end -}} +{{ template "_internal/twitter_cards.html" . }}