Skip to content
Browse files

add blog_teaser method and favicon

  • Loading branch information...
1 parent 24ab91c commit 3d6c4dde2dd020b7994d558cc32a82e6aef64f3e @alx committed Sep 20, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 app/helpers/application_helper.rb
  2. BIN public/images/favicon.ico
View
12 app/helpers/application_helper.rb
@@ -1,2 +1,14 @@
module ApplicationHelper
+
+ def blog_post_teaser(post)
+ if post.respond_to?(:custom_teaser) && post.custom_teaser.present?
+ post.custom_teaser.html_safe
+ else
+ truncate(post.body, {
+ :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
+ :preserve_html_tags => true
+ }).html_safe
+ end
+ end
+
end
View
BIN public/images/favicon.ico
Binary file not shown.

0 comments on commit 3d6c4dd

Please sign in to comment.
Something went wrong with that request. Please try again.