m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/blog.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'src/blog.html.erb')
-rw-r--r--src/blog.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/blog.html.erb b/src/blog.html.erb
new file mode 100644
index 0000000..d89494a
--- /dev/null
+++ b/src/blog.html.erb
@@ -0,0 +1,7 @@
+<ul>
+<% posts.each do |post| %>
+ <li>
+ <a href=<%= path_to post['title'] %>><%= post['title'] %></a> <%= post['date'] %>
+ </li>
+<% end %>
+</ul>