summaryrefslogtreecommitdiff
path: root/templates/archive-day.html
blob: 16bd09a0c7be9bd3c4effee15f334e7f8d62d4da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{define "main"}}
{{- $year := .Year -}}
{{- $month := .Month -}}
{{- $day := .Day -}}
<h1>{{nth .Day}} <a href="{{archive_link .Year .Month}}">{{.MonthText}}</a> <a href="{{archive_link .Year}}">{{.Year}}</a></h1>
{{with .Articles}}
{{template "article_list" .}}
{{else}}
<p>Nothing for this day.</p>
{{end}}

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