brainbaking/layouts/shortcodes/archive.html

23 lines
623 B
HTML

{{ $year := index .Params 0 }}
Not finding what you're looking for? <a href="/tags">Browse the archives</a>.
<h2>{{ $year }}</h2>
{{ range (where (where $.Site.Pages "Section" "post") "Date.Year" "eq" $year).GroupByDate "January" }}
<h3>{{ .Key }}</h3>
{{ range .Pages.GroupByDate "Jan" }}
<ul class="small">
{{ range .Pages.ByDate.Reverse }}
<li class="flexgrid flexgrid-8020">
<span><a href="{{ .RelPermalink }}">{{ .Title }}</a></span>
<small>
<time datetime='{{ .Date.Format "2006-01-02" }}'>{{ .Date.Format ("02 Jan 2006") }}</time>
</small>
</li>
{{ end }}
</ul>
{{ end }}
{{ end }}