congo/layouts/_default/list.html

26 lines
848 B
HTML
Raw Normal View History

2021-08-11 05:28:33 +00:00
{{ define "main" }}
{{ partial "section-header.html" . }}
{{ if gt .Pages 0 }}
<section>
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
2021-10-26 23:48:29 +00:00
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold first:mt-8 text-neutral-700 dark:text-neutral-300">
{{ .Key }}
</h2>
2021-08-20 07:02:08 +00:00
<hr class="border-dotted border-neutral-400 w-36" />
{{ end }}
{{ range .Pages }}
{{ partial "article-link.html" . }}
{{ end }}
{{ end }}
</section>
{{ partial "pagination.html" . }}
{{ else }}
<section class="mt-10 markdown dark:markdown-invert">
<p class="py-8 border-t">
2021-08-17 06:48:08 +00:00
<em>{{ i18n "list.no_articles" | emojify }}</em>
</p>
</section>
{{ end }}
2021-08-11 05:28:33 +00:00
{{ end }}