From 1dcf383f7d1dc6068a6f0dbf0efe22d648c5dc2f Mon Sep 17 00:00:00 2001 From: willstocks <43744514+willstocks@users.noreply.github.com> Date: Mon, 16 Mar 2020 11:05:35 +0000 Subject: [PATCH] Twitter card + OG markup fixes Remove Twitter card title, description and image (twitter cards fall back to OG markup for these elements). Fix og:image url for non-home content Conditionally show twitter:site tag --- layouts/partials/head.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index d32fd87..ea517ec 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -28,11 +28,10 @@ - - - - - +{{ if (isset .Params "twitterSite") | or (eq .Params.twitterSite "") }} + +{{ end }} + @@ -41,7 +40,7 @@ - + {{ range .Params.categories }}