Redirect to "/" from About breadcrumb

This commit is contained in:
Bartosz Wójcicki 2021-04-12 12:19:36 +02:00
parent 867770279f
commit b9d791c342
2 changed files with 9 additions and 1 deletions

View File

@ -5,4 +5,5 @@ description: Get a bit more in-depth info about the Istio project.
sidebar_none: true
weight: 15
doc_type: about
go_root_breadcrumb: true
---

View File

@ -10,7 +10,14 @@
{{ range $index := split $url "/" }}
{{ if $page }}
{{ if not $done }}
{{ $.Scratch.Add "urls" (slice $page.Permalink) }}
{{ $pageUrl := "" }}
{{ if $page.Params.go_root_breadcrumb }}
{{ $pageUrl = ($page.Site.GetPage "home").Permalink }}
{{ else }}
{{ $pageUrl = $page.Permalink }}
{{ end }}
{{ $.Scratch.Add "urls" (slice $pageUrl) }}
{{ $.Scratch.Add "titles" (slice $page.LinkTitle) }}
{{ $.Scratch.Add "descriptions" (slice $page.Description) }}