diff --git a/app/decorators/posts/decorator.rb b/app/decorators/posts/decorator.rb index 4658c73..c201a7f 100644 --- a/app/decorators/posts/decorator.rb +++ b/app/decorators/posts/decorator.rb @@ -64,7 +64,7 @@ module Adamantium end def excerpt - truncate_html(content, 140, true) + name ? truncate_html(content, 140, true) : content end def permalink