2021-08-11 05:28:33 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ partial "section-heading.html" . }}
|
2021-08-16 04:04:56 +00:00
|
|
|
{{ if gt .Pages 0 }}
|
|
|
|
<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 }}
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ partial "article-link.html" . }}
|
|
|
|
{{ end }}
|
2021-08-16 00:42:48 +00:00
|
|
|
{{ end }}
|
2021-08-16 04:04:56 +00:00
|
|
|
</section>
|
|
|
|
{{ partial "pagination.html" . }}
|
|
|
|
{{ else }}
|
|
|
|
<section class="mt-10 prose dark:prose-light">
|
|
|
|
<p class="py-8 border-t">
|
2021-08-17 06:48:08 +00:00
|
|
|
<em>{{ i18n "list.no_articles" | emojify }}</em>
|
2021-08-16 04:04:56 +00:00
|
|
|
</p>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
{{ end }}
|