Skip to content

Commit

Permalink
Provide redirects for dead links (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Aug 18, 2020
1 parent 8f0415a commit cf98411
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/index.redirects
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{{- $scalers := where site.RegularPages "Section" "scalers" }}
/docs /docs/{{ $docsLatest }} 301!
/docs/latest/* /docs/{{ $docsLatest }}/:splat
/scalers /docs/{{ $docsLatest }}/scalers 301!
/docs/scalers/* /docs/{{ $docsLatest }}/scalers/:splat
{{- range $scalers -}}
{{- $path := index (split .RelPermalink "/") 2 }}
/docs/scalers/{{ $path }} /scalers/{{ $path }}
Expand Down

0 comments on commit cf98411

Please sign in to comment.