app/helpers/write/application_helper.rb in write-0.2.1 vs app/helpers/write/application_helper.rb in write-0.2.2
- old
+ new
@@ -13,7 +13,16 @@
if post.updated?
words << " (Updated #{time_ago_in_words(post.updated_at)} ago)"
end
words
end
+
+ def head_links
+ content_for :head, auto_discovery_link_tag(:atom, feed_url, :title => Write.full_title) +
+ stylesheet_link_tag("write/application", :media => "all")
+ end
+
+ def post_snippet post
+ truncate_html(Write::MD.render(post.content), :length => 256).html_safe
+ end
end
end