hugo-internet-weblog/layouts/partials/yearly_grouping.html

26 lines
924 B
HTML
Raw Permalink Normal View History

<main class="content">
<article class="post-groups">
<div class="post-group">
2019-08-17 18:54:03 -04:00
{{ 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>
2025-01-28 13:02:01 +01:00
on <time datetime='{{ .Date.Format "02.01.2006" }}' pubdate="">{{ .Date.Format "2. Januar" }}</time>
{{ else }}
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
on
2025-01-28 13:02:01 +01:00
<a href="{{ .Permalink }}"> <time datetime='{{ .Date.Format "02.01.2000" }}' pubdate="">{{ .Date.Format "2. Januar" }}</time> </a>
{{ end }}
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</article>
</main>