feat: use meta tag to redirect externalURLs

This commit is contained in:
Wen Junhua
2024-01-14 01:39:06 +08:00
parent c8f648d5c2
commit c514283044
+4
View File
@@ -120,6 +120,10 @@
{{ with .Site.Params.verification.yandex }}
<meta name="yandex-verification" content="{{ . }}" />
{{ end }}
{{ with $.Params.externalUrl }}
<meta http-equiv="refresh" content="0; url={{ . }}" />
{{ else }}
{{ end }}
{{/* Social */}}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}