vanilla-hugo/layouts/series/list.html
Danila Fedorin a4bff7623d Don't re-print the name of series when listing pages
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-16 19:41:27 -07:00

18 lines
535 B
HTML

{{ 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" (dict "page" . "seriesName" true) }}
{{ end }}
</ul>
{{ end }}