Files
fizzy/app/views/public/collections/show.html.erb
T
2025-09-28 18:33:06 +02:00

28 lines
1.2 KiB
Plaintext

<% @page_title = @collection.name %>
<% content_for :head do %>
<%= tag.meta property: "og:title", content: "#{@collection.name} | #{Account.sole.name}" %>
<%= tag.meta property: "og:description", content: format_excerpt(@collection&.public_description, length: 200) %>
<%= tag.meta property: "og:image", content: "#{request.base_url}/app-icon.png" %>
<%= tag.meta property: "og:url", content: published_collection_url(@collection) %>
<%= tag.meta property: "twitter:title", content: "#{@collection.name} | #{Account.sole.name}" %>
<%= tag.meta property: "twitter:description", content: format_excerpt(@collection&.public_description, length: 200) %>
<%= tag.meta property: "twitter:image", content: "#{request.base_url}/app-icon.png" %>
<%= tag.meta property: "twitter:card", content: "summary_large_image" %>
<% end %>
<% content_for :header do %>
<h1 class="header__title">
<%= @page_title %>
</h1>
<% end %>
<% if @collection.public_description.present? %>
<div class="card__collection-public-description txt-align-center center margin-block-end">
<%= @collection.public_description %>
</div>
<% end %>
<%= render "public/collections/show/columns", page: @page, collection: @collection %>