Skip to content

Commit

Permalink
feat: use meta tag to redirect externalURLs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jh123x committed Jan 13, 2024
1 parent c8f648d commit c514283
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down

0 comments on commit c514283

Please sign in to comment.