1.5 KiB
1.5 KiB
familyfedie-website
Local static website files built with Astro.
Project Structure
website/- top-level static pagessrc/pages/- Astro endpoints that generate static HTML fromwebsite/src/components/- Astro components for the shared layout migration pathdist/- generated static output fromnpm run buildwebsite/index.html- homepagewebsite/about.html- about pagewebsite/contact.html- contact page with the formwebsite/blog/YYYY/MM/DD/- dated blog post pageswebsite/blog/categories/- blog category archive pageswebsite/blog/tags/- blog tag archive pageswebsite/speeches/- speech archive indexes and speech category pageswebsite/PAGES.md- map from the old folder URLs to the current HTML pathscss/- site-level stylesheetsjs/- site-level scriptsassets/- images, PDFs, fonts, theme files, uploads, and vendor filesdocs/- maintainer notesscripts/components.mjs- shared nav/sidebar/footer componentsscripts/render-shared-layout.mjs- updates repeated layout across HTML filesscripts/organize-content.mjs- organizes exported blog and speech pages
Maintenance
Run Astro locally while editing:
npm run dev
After changing shared navigation, sidebar, or footer markup in
scripts/components.mjs, run:
npm run render:layout
Local Preview
Build the Astro output first:
npm run build
Then serve dist/ with Docker:
docker compose up
Then open:
http://localhost:8080/