From c514283044960608e687140fa91d3f75d0d5a0d4 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sun, 14 Jan 2024 01:39:06 +0800 Subject: [PATCH] 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" . }}