Allow description text in toc-tree items
This commit is contained in:
parent
7ff16786bd
commit
a565da529f
2 changed files with 8 additions and 2 deletions
|
@ -15,10 +15,10 @@
|
|||
<li>
|
||||
{{ if or .Content .Params.geekdocFlatSection }}
|
||||
<span>
|
||||
<a href="{{ .RelPermalink }}" class="gdoc-toc__entry">{{ partial "title" . }}</a>
|
||||
<a href="{{ .RelPermalink }}" class="gdoc-toc__entry">{{ partial "title" . }}{{ with .Params.GeekdocDescription }}:</a> {{ . }}{{ else }}</a>{{ end }}
|
||||
</span>
|
||||
{{ else }}
|
||||
<span>{{ partial "title" . }}</span>
|
||||
<span>{{ partial "title" . }}{{ with .Params.GeekdocDescription }}: {{ . }}{{ end }}</span>
|
||||
{{ end }}
|
||||
|
||||
{{ $numberOfPages := (add (len .Pages) (len .Sections)) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue