fediversity_website/themes/nluug/layouts/partials/recursive-pages.html

12 lines
267 B
HTML

{{ $child_pages := union .Sections .Pages }}
<ul>
{{ range $child_pages.ByTitle }}
<li>
<a href="{{ .RelPermalink }}"> {{ .Title }} </a>
{{ if or (.Sections) (.Pages) }}
{{ partial "recursive-pages.html" . }}
{{ end }}
</li>
{{ end }}
</ul>