blog/themes/farallon/layouts/_default/list.html

24 lines
792 B
HTML
Raw Normal View History

2024-05-06 12:00:46 +08:00
{{ define "main" }}
<div class="page--archive">
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "2006" }}
2024-06-14 14:03:34 +08:00
{{ if (where .Pages "Section" "post") }}
2024-05-06 12:00:46 +08:00
<h2 class="archive--title__year">{{ .Key }}</h2>
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "January" }}
<h3 class="archive--title__month">{{ .Key }}</h3>
<ul class="archive--list">
2024-06-14 14:03:34 +08:00
{{ range ((where .Pages "Section" "post")) }}
2024-05-06 12:00:46 +08:00
<li class="archive--item">
<div class="archive--title">
<a href="{{ .RelPermalink }}">
{{ .Title }}
</a>
</div>
<div class="archive--meta">{{ .PublishDate.Format "Jan 02" }}</div>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ end }}
</div>
{{ end }}