Fix: sommige secties/pagina's werden dubbel getoond in sitemap

This commit is contained in:
Michael Boelen 2023-05-21 11:04:42 +02:00
parent 3652aea2ab
commit ae447e0220
2 changed files with 16 additions and 14 deletions

View file

@ -0,0 +1,11 @@
{{ $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>