Skip to content

Commit

Permalink
Switch to page.Path instead of file.Page.Path, because the latter bre…
Browse files Browse the repository at this point in the history
…aks horribly for me, although apparently for no one else??? (#1798)

Signed-off-by: Flynn <[email protected]>
  • Loading branch information
kflynn committed Jul 2, 2024
1 parent 9a978f3 commit ff60bfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linkerd.io/layouts/partials/docs.html
Original file line number Diff line number Diff line change
@@ -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)) "/" }}

<div class="wrapper docs">
<div class="columns is-fullwidth is-gapless is-tablet">
Expand Down

0 comments on commit ff60bfd

Please sign in to comment.