feat(schema): Wave 2 — add generator categories, Organization schema, 404 pages

- Add category field to generatorSchema (required, 5 values)
- Assign categories to all 28 generators
- Add Organization JSON-LD schema to BaseLayout
- Create custom 404 pages (EN + RU)
- Add not-found and blog translation keys
This commit is contained in:
emil
2026-05-14 02:48:05 +03:00
parent 43ea9bc8f3
commit 23cf7058f0
39 changed files with 362 additions and 12 deletions
+28
View File
@@ -0,0 +1,28 @@
Task 10: Custom 404 Pages (EN + RU)
Date: 2026-05-14
Status: COMPLETE
Files created:
- src/pages/404.astro
- src/pages/ru/404.astro
Files modified:
- src/i18n/translations.ts (added notFoundTitle, notFoundMessage, backToHome, blog keys)
Build verification:
- npm run build: PASS
- Total pages: 64 (62 existing + 2x 404)
- dist/404.html exists (Astro outputs root 404 as 404.html for static host compatibility)
- dist/ru/404/index.html exists
Content verified:
- EN page contains "Page Not Found"
- RU page contains "Страница не найдена"
- Both pages include breadcrumb back to home, friendly message, and links to home + blog
Key patterns used:
- BaseLayout with title/description props
- Locale detection via Astro.currentLocale
- Translation keys via useT(lang)
- Identical EN/RU template files (locale-aware links computed from lang variable)
- JSON-LD WebPage schema injected via slot="head"