aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-20 14:02:36 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-20 14:02:36 +0100
commit0096ed535d58552a3882e6b6672d5944abf40b81 (patch)
tree5fba6df63eee785ea8bd43a44751696cf62c52f4 /templates/index.html
parent9849b618794d9114704fecf274b5de219bd686e8 (diff)
downloadrocket-blog-0096ed535d58552a3882e6b6672d5944abf40b81.tar.gz
rocket-blog-0096ed535d58552a3882e6b6672d5944abf40b81.tar.bz2
rocket-blog-0096ed535d58552a3882e6b6672d5944abf40b81.zip
Refactor index template.
Use a vector of show post templates instead of manually decoding posts in the index view.
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 1b40864..151af39 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,2 +1,2 @@
<p><a href="/posts/new">Create new post</a></p>
-{{# posts }}{{> post_teaser.html }}{{/ posts }}
+{{# posts }}{{{ . }}}{{/ posts }}