hugo-internet-weblog/layouts/partials/yearly_grouping.html
Stephan Hadan c1a2dc10a2 fixed date
2025-02-02 09:06:33 +01:00

25 lines
926 B
HTML

<main class="content">
<article class="post-groups">
<div class="post-group">
{{ range .Pages.GroupByDate "2006" }}
<div class="post-group-item">
<h3>{{ .Key }}</h3>
<ul>
{{ range .Pages }}
<li>
{{ if (not (isset .Params "externalurl")) }}
<a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a>
on <time datetime='{{ .Date.Format "02.01.2006" }}' pubdate="">{{ .Date.Format "2. January" }}</time>
{{ else }}
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
on
<a href="{{ .Permalink }}"> <time datetime='{{ .Date.Format "02.01.2000" }}' pubdate="">{{ .Date.Format "2. January" }}</time> </a>
{{ end }}
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</article>
</main>