Change list items to use list instead of parent

This commit is contained in:
Will Faught
2025-02-09 15:20:06 -08:00
parent 874d15ee7f
commit 6445df50f0
2 changed files with 27 additions and 24 deletions

View File

@@ -72,13 +72,13 @@
{{ if or $sections $pages }}
{{ range . }}
{{ partial "paige/list-item.html" . }}
{{ partial "paige/list-item.html" (dict "item" . "list" $page) }}
{{ end }}
{{ else }}
{{ $pager := $page.Paginate . }}
{{ range $pager.Pages }}
{{ partial "paige/list-item.html" . }}
{{ partial "paige/list-item.html" (dict "item" . "list" $page) }}
{{ end }}
{{ template "pagination" (dict "page" $page "pager" $pager) }}
@@ -94,13 +94,13 @@
{{ if $pages }}
{{ range . }}
{{ partial "paige/list-item.html" . }}
{{ partial "paige/list-item.html" (dict "item" . "list" $page) }}
{{ end }}
{{ else }}
{{ $pager := $page.Paginate . }}
{{ range $pager.Pages }}
{{ partial "paige/list-item.html" . }}
{{ partial "paige/list-item.html" (dict "item" . "list" $page) }}
{{ end }}
{{ template "pagination" (dict "page" $page "pager" $pager) }}
@@ -117,7 +117,7 @@
{{ $pager := $page.Paginate . }}
{{ range $pager.Pages }}
{{ partial "paige/list-item.html" . }}
{{ partial "paige/list-item.html" (dict "item" . "list" $page) }}
{{ end }}
{{ template "pagination" (dict "page" $page "pager" $pager) }}