Add open graph tags for unfurling private URLs, too
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
<%= render "filters/broadcasts", filter: @filter %>
|
||||
|
||||
<% content_for :head do %>
|
||||
<%= tag.meta property: "og:title", content: @page_title %>
|
||||
<%= tag.meta property: "og:description", content: Account.sole.name %>
|
||||
<%= tag.meta property: "og:url", content: cards_url(@filter.as_params) %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :header do %>
|
||||
<%= render "cards/index/header", filter: @filter %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<% @page_title = @card.title %>
|
||||
<%= turbo_stream_from @card %>
|
||||
|
||||
<% content_for :head do %>
|
||||
<%= tag.meta property: "og:title", content: "#{@card.title} | #{@card.collection.name}" %>
|
||||
<%= tag.meta property: "og:description", content: format_excerpt(@card&.description, length: 200) %>
|
||||
<%= tag.meta property: "og:image", content: @card.image.attached? ? "#{request.base_url}#{url_for(@card.image)}" : "#{request.base_url}/app-icon.png" %>
|
||||
<%= tag.meta property: "og:url", content: collection_card_path(@card.collection, @card) %>
|
||||
<% end %>
|
||||
|
||||
<% content_for :header do %>
|
||||
<% if @card.creating? && @card.can_recover_abandoned_creation? %>
|
||||
<div class="fill-selected position-sticky flex align-center gap-half justify-center border-block margin-block-end"
|
||||
|
||||
Reference in New Issue
Block a user