vanilla-hugo/layouts/series/list.html

18 lines
503 B
HTML
Raw Normal View History

2023-01-31 17:43:05 -08:00
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ $pages := .Pages.ByDate }}
{{ $startYear := (index (last 1 .Pages) 0).Date.Format "2006" }}
{{ $endYear := (index (first 1 .Pages) 0).Date.Format "2006" }}
<div class="post-subscript">
<p>{{ partial "seriesstatus.html" .Params.status }}</p>
<p>{{ i18n "postsFromTo" (dict "from" $startYear "to" $endYear) }}</p>
</div>
<p>{{ .Summary }}</p>
<ul class="post-list">
{{ range $pages }}
{{ partial "post.html" . }}
{{ end }}
</ul>
{{ end }}