cleanup formatting

This commit is contained in:
Robert Kaussow 2020-11-11 11:48:25 +01:00
parent 5838f64644
commit b2e52d6073
No known key found for this signature in database
GPG key ID: 65362AE74AF98B61
4 changed files with 19 additions and 19 deletions

View file

@ -8,9 +8,9 @@
<ul class="gdoc-nav__list">
{{ range .sect.GroupBy "Weight" }}
{{ range .ByTitle }}
{{ if not .Params.geekdocHidden }}
{{ if not .Params.GeekdocHidden }}
<li>
{{ if or .Content .Params.geekdocFlatSection }}
{{ if or .Content .Params.GeekdocFlatSection }}
<span class="flex">
<a href="{{ .RelPermalink }}" class="gdoc-nav__entry {{ if eq $current . }}is-active{{ end }}">
{{ partial "title" . }}
@ -21,7 +21,7 @@
{{ end }}
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
{{ if and (ne $numberOfPages 0) (not .Params.geekdocFlatSection) }}
{{ if and (ne $numberOfPages 0) (not .Params.GeekdocFlatSection) }}
{{ template "tree-nav" dict "sect" .Pages "current" $current}}
{{ end }}
</li>