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 }}
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 }}