berrypod/lib/berrypod_web/live/shop/contact.ex
jamey c6da3b3d2b
All checks were successful
deploy / deploy (push) Successful in 1m38s
add meta descriptions to all shop pages
Product pages: first 155 chars of description, stripped of HTML, truncated on word boundary.
Collections: contextual description based on collection type.
Content pages (about, delivery, privacy, terms): from hero_description text.
Contact: static description.
Home falls through to site_description from settings (already in layout).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 21:31:35 +00:00

19 lines
412 B
Elixir

defmodule BerrypodWeb.Shop.Contact do
use BerrypodWeb, :live_view
@impl true
def mount(_params, _session, socket) do
{:ok,
socket
|> assign(:page_title, "Contact")
|> assign(:page_description, "Get in touch with us for any questions or help with your order.")}
end
@impl true
def render(assigns) do
~H"""
<BerrypodWeb.PageTemplates.contact {assigns} />
"""
end
end