From 5ce5220826b9ba5f01fe4159e314a75ff1935318 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Sun, 5 Jun 2022 21:45:54 +1000 Subject: [PATCH] fix(layouts): index.redirects truncates newline This fixes an issue where the generation of aliases may remove newlines erroneously moving subsequent lines to the same line as the last alias or otherwise mangle the output. --- layouts/index.redirects | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.redirects b/layouts/index.redirects index 5d7d6d2..12b9350 100644 --- a/layouts/index.redirects +++ b/layouts/index.redirects @@ -1,8 +1,8 @@ {{- range $p := .Site.Pages -}} {{- range .Aliases }} -{{ . }} {{ $p.RelPermalink -}} +{{ . }} {{ $p.RelPermalink }} +{{- end }} {{- end }} -{{- end -}} # /docs/1.0/prologue/ /docs/1.0/prologue/introduction/ # /docs/1.0/help/ /docs/1.0/help/how-to-update/