mirror of
https://github.com/prdlk/prdlk.git
synced 2026-11-02 13:12:49 +00:00
1.2 KiB
1.2 KiB
layouts
Purpose
Page shells that wrap route content with <head>, header, footer, and theming.
Key Files
| File | Description |
|---|---|
Base.astro |
Root shell for all pages. Renders BaseHead, ThemeProvider, Header, <main class="mb-20">, Footer, and prefetch speculation rules. Takes a meta: SiteMeta prop; description defaults to siteConfig.description. Sets max-w-3xl, font-mono, padding. |
BlogPost.astro |
Layout for individual writing entries. Renders Masthead, optional TOC, the prose body, webmentions, and a back-to-top button. Builds the OG image URL as /og-image/${post.id}.png. |
For AI Agents
Working In This Directory
- Every page should render inside
Base.astro(directly or viaBlogPost.astro) and pass ametaobject (titlerequired;description,ogImage,articleDateoptional). <main>carriesmb-20to separate content from the footer's top border — adjust here for global content/footer spacing.
Dependencies
Internal
@/components/BaseHead.astro,@/components/layout/*,@/components/blog/*,@/site.config,@/types.