add redirect capabilities
Marco Andronaco andronacomarco@gmail.com
Sat, 11 Feb 2023 13:13:27 +0100
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
layouts/partials/header.html
→
layouts/partials/header.html
@@ -16,6 +16,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" /> <meta property="og:image" content="{{ .Site.Params.og_image }}"/> + {{ if and (not .Draft) (.Params.Redirect) }}<meta http-equiv="Refresh" content="0; url='{{ .Params.redirect }}'" />{{ end }} {{ with .OutputFormats.Get "rss" -}} {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}}