From 75bbb538a6da7da95a373ec890b2b2e9b0204f7d Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 7 Oct 2023 14:58:50 -0700 Subject: [PATCH] New meta tags for twitter and mastodon --- .../themes/temper/layouts/partials/head.html | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/main-site/themes/temper/layouts/partials/head.html b/main-site/themes/temper/layouts/partials/head.html index 3b2afcf..cd79548 100644 --- a/main-site/themes/temper/layouts/partials/head.html +++ b/main-site/themes/temper/layouts/partials/head.html @@ -3,8 +3,13 @@ - {{ default .Params.Title .Site.Params.Title }} + + {{- /* HTML meta tags */ -}} + {{ default .Params.Title .Site.Params.Title }} + + + {{- /* Facebook meta tags */ -}} @@ -15,4 +20,18 @@ {{ else }} {{ end }} + + {{- /* Twitter meta tags */ -}} + + + + {{ if .Params.Thumbnail }} + + {{ else }} + + {{ end }} + {{- /* Requirements special to twitter, just don't touch these tbh */ -}} + {{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary-card-with-large-image */ -}} + +