Skip to content

Commit

Permalink
do not truncate post title in the <title> element
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Oct 22, 2023
1 parent 8c45826 commit d88b29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/posts/show.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>...
Expand Down

0 comments on commit d88b29f

Please sign in to comment.