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:
Pete Lumbis 2022-10-07 18:08:22 -04:00
parent 21f07337ed
commit 0a00dc4bb1
No known key found for this signature in database
GPG Key ID: FDC6C20960060000
2 changed files with 5 additions and 1 deletions

View File

@ -2,5 +2,5 @@
title: crossplane
weight: 401
layout: redirect
to: https://crossplane.io/docs/v1.9/
docs_root: true
---

View File

@ -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 }}