summaryrefslogtreecommitdiff
path: root/templates/archive-month.html
blob: 1d872a932d1cd917f075c7755c1c59d03a928613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{define "main"}}
{{- $year := .Year -}}
{{- $month := .Month -}}
<h1>{{month_text .Month}} <a href="{{archive_link .Year}}">{{.Year}}</a></h1>
{{with .Days}}
<ul>
    {{range .}}
        <li><a href="{{archive_link $year $month .Num}}">{{day_text $year $month .Num}} [{{.Count}}]</a>
    {{end}}
</ul>
{{else}}
<p>Nothing for this month.</p>
{{end}}

<p><a href="{{archive_link .Year (add .Month -1)}}" rel="prev">&lt; Previous</a> | <a href="{{archive_link .Year (add .Month 1)}}" rel="next">Next &gt;</a></p>
{{end}}