templates: add post list
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Wed, 17 Jul 2013 16:04:54 +0000 (19:04 +0300)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Wed, 17 Jul 2013 16:04:54 +0000 (19:04 +0300)
index.html
templates/post-list.html [new file with mode: 0644]

index a806adf..c3e8cc7 100644 (file)
@@ -2,4 +2,8 @@
 title: Home
 ---
 
-The Tar Pit is cooking, please come back later.
+<p>The Tar Pit is cooking, please come back later.</p>
+
+<h2>Recent posts</h2>
+
+$partial("templates/post-list.html")$
diff --git a/templates/post-list.html b/templates/post-list.html
new file mode 100644 (file)
index 0000000..a1400ef
--- /dev/null
@@ -0,0 +1,8 @@
+<ul>
+    $for(posts)$
+        <li>
+            <a href="$url$">$title$</a> - $date$
+        </li>
+    $endfor$
+</ul>
+