mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
Transactional mail, crawler metadata, and asset measurement (#179)
* Send transactional email from no-reply@mail.innersquare.app Centralise the sender identity, reply-to address and SES configuration set in Chesstrainer.Mail so no notifier can drift. Add MAIL_REDIRECT_TO for smoke tests and a mix mail.check task that exercises the SES mailbox simulators, and document the setup in the deploy guide and .env.example. * Tighten crawler metadata and keep play pages out of search Canonical URLs no longer carry query strings, public pages get an OG image, WebSite JSON-LD and a per-page language, and the sitemap dates the landing page only. Play and guest-training routes are marked noindex so tens of thousands of near-identical pages stay out of the index. * Measure built asset sizes with mix assets.sizes Report raw, gzip and brotli sizes for built JS and CSS, and record the current numbers plus the board-code split recommendation in docs/assets.md.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang={assigns[:lang] || "en"}>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
@@ -30,7 +30,24 @@
|
||||
content={assigns[:meta_description]}
|
||||
/>
|
||||
<meta :if={assigns[:canonical_url]} property="og:url" content={assigns[:canonical_url]} />
|
||||
<meta :if={assigns[:meta_description]} name="twitter:card" content="summary" />
|
||||
<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"
|
||||
@@ -73,6 +90,9 @@
|
||||
>
|
||||
</script>
|
||||
<Layouts.theme_script />
|
||||
<script :if={assigns[:json_ld]} type="application/ld+json">
|
||||
<%= raw(assigns[:json_ld]) %>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user