LeaveItFork/layouts/_default/posts.html

16 lines
483 B
HTML
Raw Permalink Normal View History

2018-09-12 16:14:09 +00:00
{{ define "content" }}
<div class="post-warp archive">
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
<h3>{{ .Key }}</h3>
{{ range .Pages }}
<article class="archive-item">
<a href="{{ .RelPermalink }}" class="archive-item-link">{{ .Title }}</a>
<span class="archive-item-date">
{{ .Date.Format "January 2, 2006" }}
</span>
</article>
{{ end }} {{ end }}
{{ partial "paginator.html" . }}
</div>
{{end }}