Merge pull request #159 from upbound/master

Updates the /docs redirect to always go to latest
This commit is contained in:
Pete Lumbis 2022-10-07 18:10:50 -04:00 committed by GitHub
commit 1796ad6cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 }}