hugo-toha/layouts/partials/helpers/get-pages.html
hossainemruz ec84fecdc0 Fix Prev/Next navigator was not pointing to the actual prev/next article
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2021-06-06 21:41:32 +06:00

10 lines
286 B
HTML

{{ $pages:= slice}}
{{ range . }}
{{ if .HasChildren }}
{{ $nestedPages:=partial "helpers/get-pages.html" .Children }}
{{ $pages = $pages | append $nestedPages }}
{{ else }}
{{ $pages = $pages | append .Page }}
{{ end }}
{{ end }}
{{ return $pages}}