aboutsummaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-11-16 17:15:06 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-11-16 17:15:06 +0100
commit114b777b806f793ebfe21895830bae99f524c9d5 (patch)
treec6de884ccebe8da4d071d3d6bf5ba6c0d17e09b3 /templates/index.html
parent3bc7143ced57da953969d80d99ff8466ab986ae2 (diff)
downloadrocket-blog-114b777b806f793ebfe21895830bae99f524c9d5.tar.gz
rocket-blog-114b777b806f793ebfe21895830bae99f524c9d5.tar.bz2
rocket-blog-114b777b806f793ebfe21895830bae99f524c9d5.zip
Pass posts to the template and iterate over them.
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index c2a7b92..a4279bd 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,6 +4,8 @@
<title>{{ title }}</title>
</head>
<body>
- {{ content }}
+ <ul>
+ {{# posts }}<li>{{ .title }}</li>{{/ posts }}
+ </ul>
</body>
-</html> \ No newline at end of file
+</html>