diff --git a/content/influxdb/v2.0/_index.md b/content/influxdb/v2.0/_index.md index cb0482ab4..b37f52926 100644 --- a/content/influxdb/v2.0/_index.md +++ b/content/influxdb/v2.0/_index.md @@ -4,7 +4,7 @@ description: > Learn how to use and leverage InfluxDB in use cases such as monitoring metrics, IoT data, and events. layout: version-landing menu: - versions: + influxdb: name: v2.0 aliases: - /v2.0/ diff --git a/layouts/_default/version-landing.html b/layouts/_default/version-landing.html index 0b47419d5..445223099 100644 --- a/layouts/_default/version-landing.html +++ b/layouts/_default/version-landing.html @@ -1,5 +1,9 @@ {{ partial "header.html" . }} +{{ $productPathData := findRE "[^/]+.*?" .RelPermalink }} +{{ $product := index $productPathData 0 }} +{{ $currentVersion := index $productPathData 1 }} +
Select Version
- {{ else }} -{{ $currentVersion }}
- {{ end }} +{{ $currentVersion }}