diff options
Diffstat (limited to 'templates/tag.html')
-rw-r--r-- | templates/tag.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/tag.html b/templates/tag.html new file mode 100644 index 0000000..02fe5b3 --- /dev/null +++ b/templates/tag.html @@ -0,0 +1,13 @@ +{{define "main"}} +<h1>Tag: {{.Tag}}</h1> +{{with .Articles}} + {{template "article_list" .}} +{{else}} + <p>Nothing found</p> +{{end}} + +{{if gt .Pages 1}} + <p>{{pagination .Pages .Page (concat "/blog/tags/" .Tag)}}</p> +{{end}} + +{{end}} |