m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/blog.html.erb
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-06-28 19:12:42 +0200
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-06-28 19:13:20 +0200
commita3b86375c946299c9216412e10c5bcf5234c7fcd (patch)
treeb1cceccafa1fad92561bfda729e2ab9b7b62f1fc /src/blog.html.erb
Initial commit
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>