hugo-theme-termlite/layouts/partials/page/descendent_section.list.html
Eryn Wells 4a6dd87603 Consolidate list templates to _default
Remove the blog list template since it's no different from the default list.
2024-10-24 10:05:25 -06:00

19 lines
531 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 $page.RegularPages.ByPublishDate -}}
{{ if or (not $page.Draft) hugo.IsDevelopment -}}
{{ .Render "page_summary" }}
{{ end }}
{{ end }}
</section>
{{ end }}
</main>