diff --git a/config.toml b/config.toml index 2722f29dba..44f5ee1515 100644 --- a/config.toml +++ b/config.toml @@ -49,10 +49,8 @@ weight = 1 ordered = false startLevel = 2 -disableAliases = false - [outputs] -home = ["HTML", "REDIR"] +home = ["HTML". "REDIR"] section = ["HTML", "Typesense"] [outputFormats.REDIR] diff --git a/layouts/docs/index.redir b/layouts/docs/index.redir new file mode 100644 index 0000000000..dcaa485d4a --- /dev/null +++ b/layouts/docs/index.redir @@ -0,0 +1,6 @@ +# Netlify redirects. See https://www.netlify.com/docs/redirects/ +{{ range $p := .Site.AllPages }} +{{- range .Aliases -}} +{{ . }} {{ $p.RelPermalink }} +{{ end }} +{{- end -}} \ No newline at end of file