mirror of https://github.com/istio/istio.io.git
fix : Hugo partial rendering error (#16475)
This commit is contained in:
parent
ce73adcac7
commit
8aaa1228b5
|
@ -48,16 +48,22 @@
|
|||
{{ $collapse = true }}
|
||||
{{ end }}
|
||||
|
||||
{{if lt (len $pageLocation) 6 -}}
|
||||
{{ if lt (len $pageLocation) 6 }}
|
||||
<a class='main' title="{{ $desc }}" href="{{ .Permalink }}">{{ $linktitle }}</a>
|
||||
{{ partial "navigation_level.html" (dict "pages" $pages "parent" . "current" $current "collapse" false "top" false "labelledby" "" ) .CurrentSection }}
|
||||
{{ else if (.CurrentSection.IsAncestor $current) }}
|
||||
{{ if and .CurrentSection (ne .CurrentSection .) (ne .CurrentSection $parent) (ne .CurrentSection $current) .CurrentSection.Pages }}
|
||||
{{ partial "navigation_level.html" (dict "pages" .CurrentSection.Pages "parent" . "current" $current "collapse" false "top" false "labelledby" "") }}
|
||||
{{ end }}
|
||||
{{ else if .CurrentSection.IsAncestor $current }}
|
||||
<button {{ if not $collapse }} class="show" {{ end }} aria-hidden="true" tabindex="-1"></button><a title="{{ $desc }}" href="{{ .Permalink }}">{{ $linktitle }}</a>
|
||||
{{ partial "navigation_level.html" (dict "pages" $pages "parent" . "current" $current "collapse" $collapse "top" false "labelledby" "" ) }}
|
||||
{{- else -}}
|
||||
{{ if and .CurrentSection (ne .CurrentSection .) (ne .CurrentSection $parent) (ne .CurrentSection $current) .CurrentSection.Pages }}
|
||||
{{ partial "navigation_level.html" (dict "pages" .CurrentSection.Pages "parent" . "current" $current "collapse" $collapse "top" false "labelledby" "") }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<button {{ if not $collapse }} class="show" {{ end }} aria-hidden="true" tabindex="-1"></button><a title="{{ $desc }}" href="{{ .Permalink }}">{{ $linktitle }}</a>
|
||||
{{ partialCached "navigation_level.html" (dict "pages" $pages "parent" . "current" $current "collapse" $collapse "top" false "labelledby" "" ) .CurrentSection }}
|
||||
{{- end -}}
|
||||
{{ if and .CurrentSection (ne .CurrentSection .) (ne .CurrentSection $parent) (ne .CurrentSection $current) .CurrentSection.Pages }}
|
||||
{{ partial "navigation_level.html" (dict "pages" .CurrentSection.Pages "parent" . "current" $current "collapse" $collapse "top" false "labelledby" "") }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ else }}
|
||||
<li role="none">
|
||||
|
|
Loading…
Reference in New Issue