Folder: src/components/global/
Site-wide utilities wired through BaseLayout.astro. Most read from siteConfig automatically. Navbar and footer are blocks — see Navbar and Footer.
Components
| Component | File | Config source |
|---|---|---|
| Seo | Seo.astro |
integrations.ts → seo + page props |
| JsonLd | JsonLd.astro |
Built per page in BaseLayout |
| Reveal | Reveal.astro |
Scroll-reveal script (no config) |
Seo & JsonLd
BaseLayout handles both. Pass per-page meta as layout props:
<BaseLayout
title="About — My Site"
description="About page description for search results."
ogImage="/og-about.png"
ogType="website"
noindex={false}
pageType="about"
>
pageType |
JSON-LD extras |
|---|---|
home |
WebSite, Person, ProfessionalService, FAQPage |
project |
Article + BreadcrumbList |
work, about, contact |
BreadcrumbList |
Reveal
Include once in BaseLayout. Adds .reveal / .is-shown scroll animations to elements with the reveal class (used throughout blocks).
Adding to a page
Utilities are not placed in page files except via BaseLayout. Customize through config:
| Goal | Edit |
|---|---|
| Default meta | integrations.ts → seo |
| Per-page meta | BaseLayout props on each .astro page |