Convert site to Hugo (#8316)
This commit converts content and layout to use Hugo.
This commit is contained in:
committed by
k8s-ci-robot
parent
7745f0e0c5
commit
7f3b633aa0
@@ -0,0 +1,25 @@
|
||||
{{ $section := . }}
|
||||
<a class="item" data-title="{{ .LinkTitle }}" href="{{ .RelPermalink }}"></a>
|
||||
{{ template "section-tree-nav-pages" . }}
|
||||
{{ template "section-tree-nav" $section }}
|
||||
{{ define "section-tree-nav" }}
|
||||
{{ $sections := where .Sections ".Params.toc_hide" "!=" true }}
|
||||
{{ range $sections }}
|
||||
<div class="item" data-title="{{ .LinkTitle }}">
|
||||
<div class="container">
|
||||
{{ if ge (len .Content) 10 }}
|
||||
{{/* The section page has content, so link to it. */}}
|
||||
<a class="item" data-title="{{ .LinkTitle }}" href="{{ .RelPermalink }}"></a>
|
||||
{{ end }}
|
||||
{{ template "section-tree-nav-pages" . }}
|
||||
{{ template "section-tree-nav" . }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ define "section-tree-nav-pages" }}
|
||||
{{ range where .Pages ".Params.toc_hide" "!=" true }}
|
||||
<a class="item" data-title="{{ .LinkTitle }}" href="{{ .RelPermalink }}"></a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user