Commit 6407c4d
feat(web): port homepage to Astro static page
Moves apps/web/public/index.html into apps/web/src/pages/index.astro so
the homepage now participates in the Astro build pipeline (same as the
4 content pages and the type/topic dynamic routes).
The change is minimal by intent:
- Frontmatter comment explaining the file's relationship to Layout.astro
(it intentionally doesn't use Layout because the homepage has its own
brand chrome and a richer Dataset JSON-LD structure than the shared one)
- The inline gtag config script gets 'is:inline' so Astro doesn't try to
bundle/transpile it
- The inline CSS block gets 'is:global is:inline' to preserve the
unscoped legacy stylesheet verbatim
- The body explorer JS gets 'is:inline' for the same reason
Everything else is untouched: explorer JS, SEO meta, OG/Twitter brand
tagline, Dataset JSON-LD with variableMeasured/inLanguage/measurementTechnique,
favicon paths, About section static links, footer.
Verified locally:
- bun run --cwd apps/web build -> 26 pages built in 18s (was 25, +index.html)
- bun run --cwd apps/web typecheck -> 0 errors
- dist/index.html has the SEO title, brand-tagline og:title, full
JSON-LD, 19 unique /types/*+/topics/* static links, all explorer JS
globals (renderTypesGrid, fetchDocuments, manifest-btn)
- dist/index.html: 43.7 KB (legacy was ~45 KB; Astro minified the markup)1 parent f6d577b commit 6407c4d
1 file changed
Lines changed: 17 additions & 3 deletions
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
6 | 20 | | |
7 | | - | |
| 21 | + | |
8 | 22 | | |
9 | 23 | | |
10 | 24 | | |
| |||
77 | 91 | | |
78 | 92 | | |
79 | 93 | | |
80 | | - | |
| 94 | + | |
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
| |||
1123 | 1137 | | |
1124 | 1138 | | |
1125 | 1139 | | |
1126 | | - | |
| 1140 | + | |
1127 | 1141 | | |
1128 | 1142 | | |
1129 | 1143 | | |
| |||
0 commit comments