diff options
Diffstat (limited to 'templates/blog.html')
-rw-r--r-- | templates/blog.html | 12 |
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}} |