mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
* lesson library shown as com,ing soon. re-enable learngin strip * replace learning strip text with a lasker quote * remove admin login endpoint * fix crawler directives and prelaunch login - noindex the authenticated scope and the 404 catch-all, and cover the mailing-list confirmation redirect - emit noindex, nofollow from the robots meta and /health, and assert public pages stay indexable and followable - stop inventing lastmod values in the sitemap - log in through /users/log-in during prelaunch now that the admin login endpoint is gone; drop create_admin/2 and its orphaned tests * update caching length to 1 year - name change will invalidate cache * remove logger * fix tablebase path breaking tests * test: check cache headers without requiring built assets CI's test job does not run mix assets.build, so /assets/css/app.css is a 404 there. Committed piece art is already content-hashed and takes the same Plug.Static cache option, so the test no longer needs a build step and passes on a fresh checkout.
110 lines
3.7 KiB
Plaintext
110 lines
3.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang={assigns[:lang] || "en"}>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta :if={assigns[:noindex]} name="robots" content="noindex, nofollow" />
|
|
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
<.live_title
|
|
default={Branding.home_title()}
|
|
suffix={assigns[:title_suffix] || " · #{Branding.name()}"}
|
|
phx-no-format
|
|
>{assigns[:page_title]}</.live_title>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="description"
|
|
content={assigns[:meta_description]}
|
|
/>
|
|
<link :if={assigns[:canonical_url]} rel="canonical" href={assigns[:canonical_url]} />
|
|
<meta :if={assigns[:meta_description]} property="og:type" content="website" />
|
|
<meta :if={assigns[:meta_description]} property="og:site_name" content={Branding.name()} />
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
property="og:title"
|
|
content={assigns[:page_title] || Branding.home_title()}
|
|
/>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
property="og:description"
|
|
content={assigns[:meta_description]}
|
|
/>
|
|
<meta :if={assigns[:canonical_url]} property="og:url" content={assigns[:canonical_url]} />
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
property="og:image"
|
|
content={assigns[:og_image_url] || SEO.og_image_url()}
|
|
/>
|
|
<meta :if={assigns[:meta_description]} property="og:image:width" content="1200" />
|
|
<meta :if={assigns[:meta_description]} property="og:image:height" content="630" />
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
property="og:image:alt"
|
|
content={"#{Branding.name()} — #{Branding.tagline()}"}
|
|
/>
|
|
<meta :if={assigns[:meta_description]} name="twitter:card" content="summary_large_image" />
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="twitter:image"
|
|
content={assigns[:og_image_url] || SEO.og_image_url()}
|
|
/>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="twitter:title"
|
|
content={assigns[:page_title] || Branding.home_title()}
|
|
/>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="twitter:description"
|
|
content={assigns[:meta_description]}
|
|
/>
|
|
<link rel="icon" href="/favicon.ico" sizes="48x48" />
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
<link rel="icon" href="/favicon-32x32.png" type="image/png" sizes="32x32" />
|
|
<link rel="icon" href="/favicon-16x16.png" type="image/png" sizes="16x16" />
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
<link rel="manifest" href="/site.webmanifest" />
|
|
<meta name="theme-color" content="#17352d" />
|
|
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/dm-sans-variable.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossorigin
|
|
/>
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/dm-serif-display.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossorigin
|
|
/>
|
|
|
|
<script
|
|
defer
|
|
phx-track-static
|
|
type="text/javascript"
|
|
src={assigns[:js_entry] || ~p"/assets/js/app.js"}
|
|
>
|
|
</script>
|
|
<Layouts.theme_script />
|
|
<script :if={assigns[:json_ld]} type="application/ld+json">
|
|
<%= raw(assigns[:json_ld]) %>
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<a
|
|
href="#main-content"
|
|
class="sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-50 focus:rounded-md focus:bg-base-100 focus:px-4 focus:py-2 focus:text-base-content focus:shadow-lg"
|
|
>
|
|
Skip to main content
|
|
</a>
|
|
<Layouts.navbar current_scope={@current_scope} />
|
|
{@inner_content}
|
|
<Layouts.footer />
|
|
<Layouts.analytics current_scope={@current_scope} />
|
|
</body>
|
|
</html>
|