From 59516300b76f329bdf238709b94a196ed0725b92 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 6 Dec 2023 15:03:43 -0700 Subject: [PATCH] fix: Prevent stable version block from appearing in platform and resources sections, closes #5262 (#5263) --- layouts/partials/article/stable-version.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/article/stable-version.html b/layouts/partials/article/stable-version.html index cbff4ab91..0794eb6a1 100644 --- a/layouts/partials/article/stable-version.html +++ b/layouts/partials/article/stable-version.html @@ -9,10 +9,12 @@ {{ $v2EquivalentURL := replaceRE `v[1-2]` $latestV2 .Page.Params.v2 }} {{ $v2EquivalentPage := .GetPage (replaceRE `\/$` "" $v2EquivalentURL) }} {{ $v2PageExists := gt (len $v2EquivalentPage.Title) 0 }} +{{ $isResources := in .Page.RelPermalink "/resources/" }} +{{ $isPlatform := in .Page.RelPermalink "/platform/" }} {{ $isCloud := in .Page.RelPermalink "/influxdb/cloud" }} {{ $isClustered := in .Page.RelPermalink "/influxdb/clustered" }} -{{ if and (ne $currentVersion $stableVersion) (not (or $isCloud $isClustered)) }} +{{ if and (ne $currentVersion $stableVersion) (not (or $isCloud $isClustered $isResources $isPlatform)) }}

This page documents an earlier version of {{ $productName }}.