From c514283044960608e687140fa91d3f75d0d5a0d4 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sun, 14 Jan 2024 01:39:06 +0800 Subject: [PATCH 1/2] feat: use meta tag to redirect externalURLs --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2d096767..52c2c496 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -120,6 +120,10 @@ {{ with .Site.Params.verification.yandex }} {{ end }} + {{ with $.Params.externalUrl }} + + {{ else }} + {{ end }} {{/* Social */}} {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} From 25f82b2f28006102f980e5b2ec32b2f03413cc9f Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 22 Jan 2024 09:12:19 +1100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A7=20Remove=20redundant=20`else`?= =?UTF-8?q?=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/head.html | 1 - 1 file changed, 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 52c2c496..b364b785 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -122,7 +122,6 @@ {{ end }} {{ with $.Params.externalUrl }} - {{ else }} {{ end }} {{/* Social */}} {{ template "_internal/opengraph.html" . }}