m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/blog.html.erb
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-27 22:21:45 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-27 22:21:45 +0100
commita6b11a3bf098c673b7f1142be60f04a00885f5a7 (patch)
treea7ffb48467763708a076b6b9fe0ca6e590e1116e /src/blog.html.erb
parent734687cad0d439cc90551be2e82bdd61280a07d6 (diff)
Use - trimming in ERB
Diffstat (limited to 'src/blog.html.erb')
-rw-r--r--src/blog.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blog.html.erb b/src/blog.html.erb
index 7fb308e..c5ccee2 100644
--- a/src/blog.html.erb
+++ b/src/blog.html.erb
@@ -2,9 +2,9 @@
Subscribe with <a href='<%= path_to 'rss' %>'>RSS</a>
</p>
<ul>
-<% posts.each do |post| %>
+<% posts.each do |post| -%>
<li>
<a href=<%= path_to post['id'] %>><%= post['title'] %></a> <%= format_date post['date'] %>
</li>
-<% end %>
+<% end -%>
</ul>