Skip to content

Commit

Permalink
Add index.redir layout (#3865)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Jan 17, 2025
1 parent 2e10136 commit 7970a08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ weight = 1
ordered = false
startLevel = 2

disableAliases = false
disableAliases = true

[outputs]
home = ["HTML", "REDIR"]
Expand Down
6 changes: 6 additions & 0 deletions layouts/docs/index.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Netlify redirects. See https://www.netlify.com/docs/redirects/
{{ range $p := .Site.AllPages }}
{{- range .Aliases -}}
{{ . }} {{ $p.RelPermalink }}
{{ end }}
{{- end -}}

0 comments on commit 7970a08

Please sign in to comment.