Fix: sommige secties/pagina's werden dubbel getoond in sitemap
This commit is contained in:
parent
3652aea2ab
commit
ae447e0220
2 changed files with 16 additions and 14 deletions
11
themes/nluug/layouts/partials/recursive-pages.html
Normal file
11
themes/nluug/layouts/partials/recursive-pages.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue