Make alias redirects relative

This commit is contained in:
mark
2023-06-19 10:03:17 +02:00
parent d99d416838
commit 8ca629978f

View File

@@ -5,6 +5,6 @@
{{- end -}} {{- end -}}
{{ range $p := .Site.AllPages }} {{ range $p := .Site.AllPages }}
{{- range .Aliases -}} {{- range .Aliases -}}
{{ if hasPrefix . "." }}{{ urls.JoinPath $p.RelPermalink . }}{{ else }}{{ . }}{{ end }} {{ $p.Permalink }} {{ if hasPrefix . "." }}{{ urls.JoinPath $p.RelPermalink . }}{{ else }}{{ . }}{{ end }} {{ $p.RelPermalink }}
{{ end }} {{ end }}
{{- end -}} {{- end -}}