Skip to content

Commit

Permalink
🔀 Merge pull request #778 from Jh123x/feat/use-meta-refresh
Browse files Browse the repository at this point in the history
feat: use meta tag to redirect externalURLs
  • Loading branch information
jpanther authored Jan 21, 2024
2 parents d659edb + 25f82b2 commit b2f8227
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
{{ with .Site.Params.verification.yandex }}
<meta name="yandex-verification" content="{{ . }}" />
{{ end }}
{{ with $.Params.externalUrl }}
<meta http-equiv="refresh" content="0; url={{ . }}" />
{{ end }}
{{/* Social */}}
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}
Expand Down

0 comments on commit b2f8227

Please sign in to comment.