mirror of https://github.com/istio/istio.io.git
Redirect to "/" from About breadcrumb
This commit is contained in:
parent
867770279f
commit
b9d791c342
|
@ -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
|
||||
---
|
|
@ -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) }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue