congo/layouts/_default/list.html

16 lines
490 B
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
{{ define "main" }}
{{ partial "section-heading.html" . }}
<section>
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Site.Params.list.groupByYear }}
<h2 class="mt-12 text-2xl font-bold first:mt-8">{{ .Key }}</h2>
<hr class="border-gray-400 border-dotted w-36" />
{{ end }}
2021-08-11 05:28:33 +00:00
{{ range .Pages }}
{{ partial "article-link.html" . }}
{{ end }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ end }}