@@ -103,25 +103,20 @@ Always use this above section titles (`text-brand-teal` on light backgrounds; `t
103103## Layout
104104
105105### Page Structure
106- ``` html
107- <!DOCTYPE html>
108- <html lang =" en" class =" scroll-smooth" >
109- <!-- Page-specific meta tags -->
110- <title >MONAI - Page Title</title >
111- <meta name =" description" content =" ..." >
112- <!-- OG tags, twitter tags, canonical -->
113-
114- <!-- #include file="components/head.html" -->
115-
116- <body class =" flex flex-col min-h-screen bg-white" >
117- <!-- #include file="components/header.html" -->
118- <main class =" flex-grow pt-16" >
119- <!-- Page content sections here -->
120- <!-- #include file="components/footer.html" -->
121- </main >
122- <!-- #include file="components/scripts.html" -->
123- </body >
124- </html >
106+ ``` astro
107+ ---
108+ import BaseLayout from '../layouts/BaseLayout.astro';
109+ const frontmatter = {
110+ title: 'MONAI - Page Title',
111+ description: '...',
112+ canonical: 'https://project-monai.github.io/<name>.html',
113+ // optional: audience, schemaType, metaRefresh
114+ };
115+ ---
116+ <BaseLayout {...frontmatter}>
117+ <!-- Page sections here. BaseLayout provides <head> (SEO, JSON-LD, GA4),
118+ Header, Footer, and the shared scripts. -->
119+ </BaseLayout>
125120```
126121
127122### Container
@@ -530,17 +525,13 @@ For displaying code snippets (e.g., install commands, code examples):
530525When creating a new page:
531526
5325271 . Use ` class="scroll-smooth" ` on ` <html> ` (NOT inline style)
533- 2 . Include all 4 component files via SSI:
534- - ` <!-- #include file="components/head.html" --> `
535- - ` <!-- #include file="components/header.html" --> `
536- - ` <!-- #include file="components/footer.html" --> `
537- - ` <!-- #include file="components/scripts.html" --> `
538- 3 . Add complete meta tags: title, description, og: title , og: description , og: url , twitter: title , twitter: description , canonical
528+ 2 . Wrap the page in ` BaseLayout ` (it renders head, Header, Footer, and shared scripts).
529+ 3 . Fill the ` frontmatter ` const: title, description, canonical (BaseHead derives OG/Twitter/canonical/markdown-twin tags from it)
5395304 . Start with a light hero (` bg-gradient-to-br from-white via-brand-light/40 to-white ` , dark text; see DESIGN.md, dark heroes are legacy)
5405315 . Use ` reveal ` classes for scroll-reveal animations, sparingly
5415326 . Alternate ` bg-white ` and ` bg-gray-50 ` for content sections
5425337 . Test responsive layout at mobile (375px), tablet (768px), desktop (1280px)
543- 8 . Run ` npm run build ` to verify SSI includes resolve
534+ 8 . Run ` npm run build ` and ` npm test ` to verify the page and LLM artifacts generate
544535
545536---
546537
0 commit comments