diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2021-01-01 14:46:54 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2021-01-01 14:46:54 +0100 |
commit | 85473656174b1b1d6221d3bb76cc12fa5f7f7e8d (patch) | |
tree | 37349eee4f64781f06e8597dc4c457801eb03a47 /templates/archive-day.html | |
download | laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.tar.gz laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.tar.bz2 laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.zip |
Initial commit
Diffstat (limited to 'templates/archive-day.html')
-rw-r--r-- | templates/archive-day.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/archive-day.html b/templates/archive-day.html new file mode 100644 index 0000000..16bd09a --- /dev/null +++ b/templates/archive-day.html @@ -0,0 +1,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">< Previous</a> | <a href="{{archive_link .Year .Month (add .Day 1)}}" rel="next">Next ></a></p> +{{end}} |