Include redirects for static resources (#8209)

This commit is contained in:
davidhauck 2020-09-25 07:04:38 -07:00 committed by GitHub
parent 3b5cacbbe9
commit 07f51b347a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,12 @@ https://istio.netlify.com/* https://istio.io/:splat 301!
/downloadIstio https://raw.githubusercontent.com/istio/istio/master/release/downloadIstioCandidate.sh
/downloadIstioctl https://raw.githubusercontent.com/istio/istio/master/release/downloadIstioCtl.sh
# Redirect static folder
/img/* /latest/img/:splat
/misc/* /latest/misc/:splat
/talks/* /latest/talks/:splat
/favicons/* /latest/favicons/:splat
# navigating to a page without /latest on front, add /latest
{{ range $p := .Site.Pages }}
{{ strings.TrimPrefix "/latest" $p.Permalink }} {{ $p.Permalink}}
@ -52,4 +58,4 @@ https://istio.netlify.com/* https://istio.io/:splat 301!
http://archive.istio.io/ http://istio.io/archive 301!
http://archive.istio.io/* http://istio.io/:splat 301!
https://archive.istio.io/ https://istio.io/archive 301!
https://archive.istio.io/* https://istio.io/:splat 301!
https://archive.istio.io/* https://istio.io/:splat 301!