Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-06-05 14:45:54 +0300
committerJames Elliott <james-d-elliott@users.noreply.github.com>2022-06-05 14:45:54 +0300
commit5ce5220826b9ba5f01fe4159e314a75ff1935318 (patch)
tree5e694661f9801583ad5ad89eb321b3f58f4757fb
parentcf51ea887dd12f79588f950988d0eb6c6895407f (diff)
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.
-rw-r--r--layouts/index.redirects4
1 files 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/