From 9556244a7c7ed4e2862682313653500711914494 Mon Sep 17 00:00:00 2001 From: John Lian Date: Wed, 12 Oct 2022 15:02:39 -0700 Subject: [PATCH] Update version banner to point to current page To match https://github.com/google/docsy/pull/1054 --- layouts/partials/version-banner.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/version-banner.html b/layouts/partials/version-banner.html index 6bfbc466ee..4d86e7a5c4 100644 --- a/layouts/partials/version-banner.html +++ b/layouts/partials/version-banner.html @@ -4,12 +4,16 @@ {{ $color := "primary" }} {{ $latest_version := .Site.Params.url_latest_version }} {{ $current_version := .Site.Params.version }} + {{ $path := "" }} + {{ if .Site.Params.version_menu_pagelinks }} + {{ $path = .Page.RelPermalink }} + {{ end }}
{{ with $current_version }}

Version {{ . | markdownify }} of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. {{ with $latest_version }}For up-to-date documentation, see the - latest version.

+ latest version.

{{ end }} {{ end }}