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

24 lines
794 B
HTML

{{ define "main" }}
<div class="page--archive">
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "2006" }}
{{ if (where .Pages "Section" "story") }}
<h2 class="archive--title__year">{{ .Key }}</h2>
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "January" }}
<h3 class="archive--title__month">{{ .Key }}</h3>
<ul class="archive--list">
{{ range ((where .Pages "Section" "story")) }}
<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 }}