app/views/blog/index.html.erb in spud_blog-0.8.18 vs app/views/blog/index.html.erb in spud_blog-0.9.0
- old
+ new
@@ -1,5 +1,9 @@
+<% content_for :title do %>
+ Blog | <%=current_site_name%>
+<% end %>
+
<% content_for :head do %>
<%= spud_blog_rss_link %>
<% end %>
<div id="spud_blog_filters">
@@ -17,15 +21,15 @@
<% @posts.each do |post| %>
<div class="spud_blog_post">
<h3><%= link_to post.title, blog_post_path(post.url_name) %></h3>
<h4>Posted by <%= post.author.full_name %> on <%= post.display_date %></h4>
<div class="spud_blog_post_content">
- <%= raw post.content %>
+ <%= truncate_html post.content.html_safe, :length => 250 %>
</div>
</div>
<% end %>
<% else %>
<p>No posts were found in this category</p>
<% end %>
</div>
-<%= will_paginate @posts %>
\ No newline at end of file
+<%= will_paginate @posts %>