hugo-theme-termlite/layouts/partials/page/descendent_section.list.html
Eryn Wells c4821daa6e Add a should_render.html partial
Encapsulates the decision making about whether a page should be rendered.
2024-11-13 17:03:17 -08:00

19 lines
503 B
HTML

{{- $page := .page -}}
{{- $class := .class | default "" -}}
<main class="main--list{{ with $class }} {{ . }}{{ end }}">
<header class="page-header">
{{ partial "page_header.html" . }}
</header>
{{- .Content -}}
{{ with $page.RegularPages.ByPublishDate -}}
<section class="main__posts-by-year">
{{ range .Reverse -}}
{{ if partial "page/should_render.html" . -}}
{{ .Render "page_summary" }}
{{ end }}
{{ end }}
</section>
{{ end }}
</main>