Render page content and page lists in list and taxonomy templates

This commit is contained in:
Eryn Wells 2024-07-23 08:58:06 -07:00
parent f1977320e8
commit c6213619b0
2 changed files with 20 additions and 0 deletions

View file

@ -3,5 +3,15 @@
<header class="page-header"> <header class="page-header">
{{ partial "page_header.html" (dict "page" .) }} {{ partial "page_header.html" (dict "page" .) }}
</header> </header>
{{ with .Content -}}
<div class="main--list__content">{{ . }}</div>
{{- end }}
<div class="main--list__page-list">
{{ range .Pages.ByTitle }}
{{ .Render "page_summary" }}
{{ end }}
</div>
</main> </main>
{{ end }} {{ end }}

View file

@ -4,5 +4,15 @@
{{- $title := printf "%s: %s" .Data.Singular .Title }} {{- $title := printf "%s: %s" .Data.Singular .Title }}
{{ partial "page_header.html" (dict "page" . "title" $title) }} {{ partial "page_header.html" (dict "page" . "title" $title) }}
</header> </header>
{{ with .Content -}}
<div class="main--list__content">{{ . }}</div>
{{- end }}
<div class="main--list__page-list">
{{ range .Pages.ByTitle }}
{{ .Render "page_summary" }}
{{ end }}
</div>
</main> </main>
{{ end }} {{ end }}