Skip to content

Commit fc13896

Browse files
committed
Scratch that, these need a public url
1 parent 0452a45 commit fc13896

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/views/public/cards/show.html.erb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
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 %>

0 commit comments

Comments
 (0)