summaryrefslogtreecommitdiff
path: root/templates/archive-year.html
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2021-01-01 14:46:54 +0100
committerLaria Carolin Chabowski <laria@laria.me>2021-01-01 14:46:54 +0100
commit85473656174b1b1d6221d3bb76cc12fa5f7f7e8d (patch)
tree37349eee4f64781f06e8597dc4c457801eb03a47 /templates/archive-year.html
downloadlaria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.tar.gz
laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.tar.bz2
laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.zip
Initial commit
Diffstat (limited to 'templates/archive-year.html')
-rw-r--r--templates/archive-year.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/archive-year.html b/templates/archive-year.html
new file mode 100644
index 0000000..c4aa7ee
--- /dev/null
+++ b/templates/archive-year.html
@@ -0,0 +1,15 @@
+{{define "main"}}
+{{- $year := .Year -}}
+<h1>{{.Year}}</h1>
+{{with .Months}}
+<ul>
+ {{range .}}
+ <li><a href="{{archive_link $year .Num}}">{{month_text .Num}} {{$year}} [{{.Count}}]</a>
+ {{end}}
+</ul>
+{{else}}
+<p>Nothing for this year.</p>
+{{end}}
+
+<p><a href="{{archive_link (add .Year -1)}}" rel="prev">&lt; Previous</a> | <a href="{{archive_link (add .Year 1)}}" rel="next">Next &gt;</a></p>
+{{end}}