Harden CMS security, fix SEO/a11y gaps, and fill in missing article images
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Server: refuse to start in production with the default admin password, drop SVG from the upload allow-list (stored-XSS risk), add baseline security headers, make the login rate limiter proxy-aware via TRUST_PROXY, and auto-load .env.local/.env in dev. Admin: sanitise post bodies on content import/snapshot restore (previously bypassed sanitiseBody), confirm before discarding a draft, drop back to the login screen on a mid-session 401 instead of a stuck error, add hero-image alt text and a title/excerpt search to the articles panel. Site: replace the soft-404-to-homepage fallback with a real noindex 404 page, add a focus trap/Escape handling/aria-modal to the enquiry modal, aria-expanded on the mobile nav toggle, ItemList/breadcrumb structured data for the newsroom and articles, and wire sitemap generation into the build so it can't go stale. Extract the duplicated NewsGrid/ArticlePage card markup into a shared PostCard component. Content: 13 of 18 seed articles shipped with no hero image (one pointed at a dead WordPress URL); the live blackdice.ai site turned out to still be the old blackdice-studio.html export, so recovering the originals wasn't feasible. Filled the gap with freely-licensed Unsplash placeholders, credited in the author field, until real photography is ready. Also adds a Gitea Actions CI workflow (typecheck + build). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
</div>
|
||||
<button data-cms="c0012" class="bd-nl bd-nav-cta" onclick="showDemo()">Talk to us</button>
|
||||
</div>
|
||||
<button class="bd-ham" onclick="toggleMob()" aria-label="Menu"><span></span><span></span><span></span></button>
|
||||
<button class="bd-ham" onclick="toggleMob()" aria-label="Menu" aria-expanded="false" aria-controls="mob-nav"><span></span><span></span><span></span></button>
|
||||
</nav>
|
||||
|
||||
<!-- MOBILE NAV -->
|
||||
@@ -3968,7 +3968,7 @@
|
||||
|
||||
<!-- ═══ DEMO MODAL ═══ -->
|
||||
<div id="modal-ov" class="modal-ov" style="display:none" onclick="closeBg(event)">
|
||||
<div class="modal-box">
|
||||
<div class="modal-box" role="dialog" aria-modal="true" aria-label="Request a demonstration">
|
||||
<button data-cms="c0630" class="modal-x" onclick="closeDemo()">✕</button>
|
||||
<div id="modal-form" style="display:block">
|
||||
<span data-cms="c0631"
|
||||
|
||||
Reference in New Issue
Block a user