Files
HugoBlox-kit/layouts/shortcodes/list_children.html
T
George Cushen 0b9cbc4150 feat: add Book layout
Similar to the Docs layout but much easier to use.

Add `type: book` to a page's front matter and place Markdown files within a folder hierarchy to automatically create the book sidebar navigation.

Introduces {{< list_children >}} shortcode for listing children of a book chapter.
2020-07-25 01:47:37 +01:00

8 lines
254 B
HTML

{{ if gt (len $.Page.Pages) 0}}
<ul class="list-unstyled">
{{ range $.Page.Pages }}
<li><h5><a href="{{.RelPermalink}}">{{.LinkTitle}}</a></h5> {{with .Params.summary}}<p>{{. | plainify | emojify}}</p>{{end}}</li>
{{end}}
</ul>
{{end}}