feat: use meta tag to redirect externalURLs

pull/778/head
Wen Junhua 2024-01-14 01:39:06 +08:00
parent c8f648d5c2
commit c514283044
1 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,10 @@
{{ with .Site.Params.verification.yandex }} {{ with .Site.Params.verification.yandex }}
<meta name="yandex-verification" content="{{ . }}" /> <meta name="yandex-verification" content="{{ . }}" />
{{ end }} {{ end }}
{{ with $.Params.externalUrl }}
<meta http-equiv="refresh" content="0; url={{ . }}" />
{{ else }}
{{ end }}
{{/* Social */}} {{/* Social */}}
{{ template "_internal/opengraph.html" . }} {{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}