anatole-porzh/layouts/_default/list.html

43 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2025-10-09 10:23:36 +02:00
{{ define "main" }}
<div
class="archive {{ with .Site.Params.doNotLoadAnimations }}
.
{{ else }}
animated fadeInDown
{{ end }}"
>
{{ range .Data.Pages.GroupByDate "2006" }}
<div class="archive__heading">{{ .Key }}</div>
{{ range .Pages }}
<ul class="archive__list">
<li class="archive__list-item">
{{ if (eq .Site.Params.disableArchiveTitleStyling true) }}
<a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ .Title }}</a>
{{ else }}
<a class="archive__list-title" href="{{ .RelPermalink }}" title="{{ .Title }}">{{ upper .Title }}</a>
{{ end }}
<div class="archive__list-date">
{{ if isset .Site.Params "listdateformat" }}
{{ if .Site.Params.localizedDates }}
{{ time.Format .Site.Params.listDateFormat .Date }}
{{ else }}
{{ .Date.Format .Site.Params.listDateFormat }}
{{ end }}
{{ else }}
{{ if .Site.Params.localizedDates }}
{{ time.Format "Jan 2" .Date }}
{{ else }}
{{ .Date.Format "Jan 2" }}
{{ end }}
{{ end }}
</div>
</li>
</ul>
{{ end }}
{{ end }}
</div>
{{ end }}