mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 14:15:47 +00:00
feat(shortcode): show summaries by default in list_children
This commit is contained in:
1 parent
362cb1510b
commit
9872428a3f
1 file changed
+5
-1
@@ -1,7 +1,11 @@
|
||||
{{ $show_summary := ne (.Get "show_summary") "false" }}
|
||||
{{ 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>
|
||||
<li>
|
||||
<h5><a href="{{.RelPermalink}}">{{.LinkTitle}}</a></h5>
|
||||
{{if $show_summary | and .Summary}}<p>{{.Summary | plainify | emojify}}</p>{{end}}
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
Reference in new issue
Block a user