diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-04-09 17:41:17 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-04-09 17:41:17 +0200 |
commit | a3995bf898c38ed755a3e1bd60b3b4aaf27670ec (patch) | |
tree | 75882cb224243a2e8856371245c698f382a922fb /source/_article_summary.html.erb | |
parent | 4299ee398c19076ab27451b669d7f726d6e6a45d (diff) |
add custom blog article summary generator that truncates to first pararaph
Diffstat (limited to 'source/_article_summary.html.erb')
-rw-r--r-- | source/_article_summary.html.erb | 5 |
1 files changed, 5 insertions, 0 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> |