Harden CMS security, fix SEO/a11y gaps, and fill in missing article images
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:
2026-08-13 13:54:38 +05:00
co-authored by Claude Sonnet 5
parent 410463e0ed
commit f02461b456
35 changed files with 477 additions and 146 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

+10 -10
View File
@@ -2,52 +2,52 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.blackdice.ai/</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>1.0</priority>
</url>
<url>
<loc>https://www.blackdice.ai/mobile-sdk</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.9</priority>
</url>
<url>
<loc>https://www.blackdice.ai/dns-protect</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.9</priority>
</url>
<url>
<loc>https://www.blackdice.ai/halo-cpe</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.9</priority>
</url>
<url>
<loc>https://www.blackdice.ai/for-operators</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.blackdice.ai/financial-services</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.blackdice.ai/why-blackdice</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.7</priority>
</url>
<url>
<loc>https://www.blackdice.ai/news</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.blackdice.ai/investors</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://www.blackdice.ai/contact</loc>
<lastmod>2026-08-12</lastmod>
<lastmod>2026-08-13</lastmod>
<priority>0.7</priority>
</url>
<url>