diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index c534a060e..d5a6e7f89 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, @post.title.truncate(50) %> +<% content_for :title, @post.title.truncate(max_title_length(@post.category)) %> <% content_for :description do %> <% Rails.cache.fetch "posts/#{@post.id}/description" do %> <%= @post.body_plain[0..74].strip %>...