From 55dc6520dfe8426bd644d05156de02c5b589190f Mon Sep 17 00:00:00 2001 From: Flynn Date: Tue, 2 Jul 2024 11:31:00 -0400 Subject: [PATCH] Switch to page.Path instead of file.Page.Path, because the latter breaks horribly for me, although apparently for no one else??? Signed-off-by: Flynn --- linkerd.io/layouts/partials/docs.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linkerd.io/layouts/partials/docs.html b/linkerd.io/layouts/partials/docs.html index 52246de1b6..f19d097414 100644 --- a/linkerd.io/layouts/partials/docs.html +++ b/linkerd.io/layouts/partials/docs.html @@ -1,7 +1,7 @@ {{ $latestVersion := site.Params.latest_linkerd2_stable_version }} -{{ $pathParts := split .page.File.Path "/" }} -{{ $docsVersion := index $pathParts 0 }} -{{ $latestDocsPath := delimit (append (after 1 $pathParts) (slice "" $latestVersion)) "/" }} +{{ $pathParts := split .page.Path "/" }} +{{ $docsVersion := index $pathParts 1 }} +{{ $latestDocsPath := delimit (append (after 2 $pathParts) (slice "" $latestVersion)) "/" }}