404 and 500 drafts

This commit is contained in:
2026-11-06 15:42:52 +01:00
parent b17f346b25
commit 785e403370
14 changed files with 335 additions and 95 deletions
@@ -49,4 +49,14 @@ defmodule ChesstrainerWeb.PageController do
|> assign(:canonical_url, current_url(conn))
|> render(:terms_conditions)
end
def not_found(conn, _params) do
conn
|> put_status(:not_found)
|> assign(:js_entry, ~p"/assets/js/marketing.js")
|> assign(:page_title, Branding.title("Page not found"))
|> assign(:title_suffix, "")
|> assign(:noindex, true)
|> render(:not_found)
end
end