all repos — archie @ b7afb3a5dd9091e83b74114407c5a0659a9e49fd

A minimal Hugo Theme

add redirect capabilities
Marco Andronaco andronacomarco@gmail.com
Sat, 11 Feb 2023 13:13:27 +0100
commit

b7afb3a5dd9091e83b74114407c5a0659a9e49fd

parent

41507dc3ee324293a26675cb99b823cd7206a1bf

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M layouts/partials/header.htmllayouts/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 -}}