aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorKyle Wilkinson <kai@wikyd.org>2011-06-21 02:49:28 -0700
committerKyle Wilkinson <kai@wikyd.org>2011-06-21 02:49:28 -0700
commit6086e618c34aee1db1c43866539b6a3b1ccdc40f (patch)
tree24ae6a91e3f229bf7589d85726e3779f64f06494 /app/views
parent3c0412bfaa3c2dc3fff319af0c812f7a9fb286a3 (diff)
downloadrefinerycms-blog-6086e618c34aee1db1c43866539b6a3b1ccdc40f.tar.gz
refinerycms-blog-6086e618c34aee1db1c43866539b6a3b1ccdc40f.tar.bz2
refinerycms-blog-6086e618c34aee1db1c43866539b6a3b1ccdc40f.zip
Add helper for finding the teaser to display for a blog post. Use this when displaying short version of blog posts.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/blog/shared/_post.html.erb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb
index e3ce714..3b91930 100644
--- a/app/views/blog/shared/_post.html.erb
+++ b/app/views/blog/shared/_post.html.erb
@@ -21,9 +21,7 @@
</section>
</header>
<section class='clearfix'>
- <%= truncate(post.body,
- :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
- :preserve_html_tags => true) %>
+ <%= blog_post_teaser(post) %>
</section>
<footer>
<p>