Astro & PicoCSS
backpacker-yds/
├── src-astro/ # Astro source files
│ ├── components/ # Reusable components
│ │ └── Navigation.astro
│ ├── layouts/ # Page layouts
│ │ └── Layout.astro
│ ├── pages/ # Page routes
│ │ ├── index.astro # Main content page
│ │ └── related.astro # Related thoughts page
│ └── styles/ # SCSS stylesheets
│ └── scss/
│ ├── app.css
├── public/ # Static assets
│ └── assets/
│ ├── img/ # Images and thumbnails
│ ├── fonts/ # Web fonts
│ └── js/ # JavaScript files (Foundation, etc.)
├── dist-astro/ # Built Astro output
├── astro.config.mjs # Astro configuration
└── package.json # Dependencies and scripts
npm run devThis starts the Astro dev server at http://localhost:4321
npm run buildBuilds the site to dist/ directory (used by Netlify)
npm run astro:previewPreview the built site before deployment
The lightbox is loaded from CDN and initialized in the main layout:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/glightbox/dist/css/glightbox.min.css" />
<script is:inline src="https://cdn.jsdelivr.net/gh/mcstudios/glightbox/dist/js/glightbox.min.js"></script>
<script is:inline>
const lightbox = GLightbox({ moreLength: 0 });
</script>