diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html index fb340bb59c..bef4f20ec4 100644 --- a/site/layouts/partials/docs-versions.html +++ b/site/layouts/partials/docs-versions.html @@ -5,9 +5,9 @@ {{- $versions_link := "" -}} {{- if and (eq .Layout "docs") (eq $page_version .Site.Params.docs_version) -}} - {{- .Scratch.Set "versions_link" (printf "%s/%s/" $group_slug $page_slug) -}} + {{- $versions_link = printf "%s/%s/" $group_slug $page_slug -}} {{- else if (eq .Layout "single") }} - {{- .Scratch.Set "versions_link" (printf "%s/" $page_slug) -}} + {{- $versions_link = printf "%s/" $page_slug -}} {{- end }}