mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 14:14:04 +00:00
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.
8 lines
254 B
HTML
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}}
|