Only add content from a list page if there's actually content to render

This commit is contained in:
Eryn Wells 2024-10-08 22:33:59 -07:00
parent 5eb9c2c826
commit c17177aecd

View file

@ -4,9 +4,9 @@
{{ partial "page_header.html" (dict "page" .) }}
</header>
<div class="main--list__content">
{{ .Content }}
</div>
{{- with .Content }}
<div class="main--list__content">{{ . }}</div>
{{ end -}}
<div class="main--list__page-list">
{{ range .Pages.ByDate.Reverse }}