mirror of https://github.com/crossplane/docs.git
Updates the /docs redirect to always go to what is globally defined as the latest version
Signed-off-by: Pete Lumbis <pete@upbound.io>
This commit is contained in:
parent
21f07337ed
commit
0a00dc4bb1
|
@ -2,5 +2,5 @@
|
|||
title: crossplane
|
||||
weight: 401
|
||||
layout: redirect
|
||||
to: https://crossplane.io/docs/v1.9/
|
||||
docs_root: true
|
||||
---
|
|
@ -1 +1,5 @@
|
|||
{{ if .Params.docs_root }}
|
||||
{{ partial "redirect" (dict "dest" (printf "https://crossplane.io/docs/v%s/" (string .Site.Params.latest) ) ) }}
|
||||
{{ else }}
|
||||
{{ partial "redirect" (dict "dest" .Params.to) }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue