summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/_article_summary.html.erb5
-rw-r--r--source/index.html.erb2
2 files changed, 6 insertions, 1 deletions
diff --git a/source/_article_summary.html.erb b/source/_article_summary.html.erb
new file mode 100644
index 0000000..fbb4cfd
--- /dev/null
+++ b/source/_article_summary.html.erb
@@ -0,0 +1,5 @@
+<% article = article_summary %>
+<div>
+ <h3><%= link_to article.title, article %> <span><%= article.date.strftime('%b %e') %></span></h3>
+ <%= article.summary %>
+</div>
diff --git a/source/index.html.erb b/source/index.html.erb
index 98486b6..dbef3db 100644
--- a/source/index.html.erb
+++ b/source/index.html.erb
@@ -20,7 +20,7 @@ title: sublab - Ein Hackerspace in Leipzig
<h2>[ Neues aus dem sublab]</h2>
- <%= partial "article", collection: blog.articles[0..4] %>
+ <%= partial "article_summary", collection: blog.articles[0..4] %>
<p><%= link_to "Alle News", "/news.html" %></p>