From 97af798ba1ff24a6eccf4b48e3cdfd2e89236a91 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 11:24:13 +0800 Subject: simpler twitter cards --- layouts/partials/templates/twitter_cards.html | 34 --------------------------- 1 file changed, 34 deletions(-) delete mode 100644 layouts/partials/templates/twitter_cards.html (limited to 'layouts/partials/templates') diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html deleted file mode 100644 index bc744b2..0000000 --- a/layouts/partials/templates/twitter_cards.html +++ /dev/null @@ -1,34 +0,0 @@ -{{- if .Params.cover.image -}} - - {{- if (eq .Params.cover.absolute true) }} - - {{- else }} - - {{- end}} -{{- else }} - {{- 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 -}} - - - {{ else -}} - - {{- end -}} - {{- end -}} - {{- end }} -{{- end }} - - - -{{ with site.Social.twitter -}} - -{{ end -}} -- cgit v1.2.3