Skip to content

Commit 7970a08

Browse files
authored
Add index.redir layout (#3865)
1 parent 2e10136 commit 7970a08

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ weight = 1
4949
ordered = false
5050
startLevel = 2
5151

52-
disableAliases = false
52+
disableAliases = true
5353

5454
[outputs]
5555
home = ["HTML", "REDIR"]

layouts/docs/index.redir

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Netlify redirects. See https://www.netlify.com/docs/redirects/
2+
{{ range $p := .Site.AllPages }}
3+
{{- range .Aliases -}}
4+
{{ . }} {{ $p.RelPermalink }}
5+
{{ end }}
6+
{{- end -}}

0 commit comments

Comments
 (0)