3c28d98c32e133efe53c8d546165373052f3de87
The gap between listing items was collapsing to 11-33px and varying per item, despite a 50px margin. The thumbnail floats left and nothing contained it, so whenever the excerpt was shorter than the 150px image -- which is most of them now the column is the full 930px rather than the theme's 650px -- the image overflowed the item and the margin below it was absorbed. .post/.hentry now use display: flow-root, so the item wraps its own float and the margin is measured below the image. Measured against the live old site: it has no overflow (-6px) and a steady 42px gap; this was overflowing by 39-61px. Both sites now sit at a consistent 60px. That also makes the theme's trailing <br /> and clear div redundant -- they existed only to escape the float -- so the listing markup drops them and the wrapping Fragment with them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Astro Starter Kit: Minimal
npm create astro@latest -- --template minimal
🧑🚀 Seasoned astronaut? Delete this file. Have fun!
🚀 Project Structure
Inside of your Astro project, you'll see the following folders and files:
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.
There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
Any static assets, like images, can be placed in the public/ directory.
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
👀 Want to learn more?
Feel free to check our documentation or jump into our Discord server.
Languages
CSS
53.8%
JavaScript
25.1%
Astro
19.7%
TypeScript
1.4%