From de303d7592f95eb532addc36b2ff001907864f42 Mon Sep 17 00:00:00 2001 From: Nadine Spies <17709352+Nadine2016@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:41:50 -0500 Subject: [PATCH] Update versionbanner.html --- layouts/partials/docs/versionbanner.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layouts/partials/docs/versionbanner.html b/layouts/partials/docs/versionbanner.html index c1d9bfb..0df08a7 100644 --- a/layouts/partials/docs/versionbanner.html +++ b/layouts/partials/docs/versionbanner.html @@ -1,10 +1,8 @@ -{{- $path := .Page.RelPermalink -}} {{ $version := .Page.FirstSection.RelPermalink }} -{{ $newPath := strings.Replace $path $version "" -1 }} -{{ $baseurl := .Site.BaseURL }} {{/* If current version uses a subversion, strip it from the path */}} {{ $versionTrimmed := trim $version "/" }} +{{- printf $versionTrimmed }} {{ if eq $versionTrimmed "main" }}