summaryrefslogtreecommitdiff
path: root/templates/blog.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/blog.html
downloadlaria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.tar.gz
laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.tar.bz2
laria.me-85473656174b1b1d6221d3bb76cc12fa5f7f7e8d.zip
Initial commit
Diffstat (limited to 'templates/blog.html')
-rw-r--r--templates/blog.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..117f5ab
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,12 @@
+{{define "main"}}
+{{with .Articles}}
+ {{template "article_list" .}}
+{{else}}
+ <p>Nothing found</p>
+{{end}}
+
+{{if gt .Pages 1}}
+ <p>{{pagination .Pages .Page "/blog"}}</p>
+{{end}}
+
+{{end}}