Skip to content

Commit

Permalink
summary for twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Oct 19, 2023
1 parent 601499c commit 4cadf36
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/controllers/articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ def show
title: "#{@post.title} on Rauversion",
description: "Read #{@post.title} by #{@post.user.username} on Rauversion.",
image: @post&.cover_url(:medium),

twitter: {
card: "summary",
site: "rauversion.com",
creator: "@rauversion",
title: @post.title,
description: @post.excerpt,
image: @post&.cover_url(:medium)
}
)
end

Expand Down

0 comments on commit 4cadf36

Please sign in to comment.