File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11<% @page_title = @card.title %>
22
33<% content_for :head do %>
4- <%= card_social_tags(@card) %>
4+ <%= tag.meta property: "og:title", content: "#{@card.title} | #{@card.board.name}" %>
5+ <%= tag.meta property: "og:description", content: format_excerpt(@card&.description, length: 200) %>
6+ <%= tag.meta property: "og:image", content: @card.image.attached? ? "#{request.base_url}#{url_for(@card.image)}" : "#{request.base_url}/app-icon.png" %>
7+ <%= tag.meta property: "og:url", content: published_card_url(@card) %>
8+
9+ <%= tag.meta property: "twitter:title", content: "#{@card.title} | #{@card.board.name}" %>
10+ <%= tag.meta property: "twitter:description", content: format_excerpt(@card&.description, length: 200) %>
11+ <%= tag.meta property: "twitter:image", content: @card.image.attached? ? "#{request.base_url}#{url_for(@card.image)}" : "#{request.base_url}/app-icon.png" %>
12+ <%= tag.meta property: "twitter:card", content: "summary_large_image" %>
513<% end %>
614
715<% content_for :header do %>
You can’t perform that action at this time.
0 commit comments