No description
  • Astro 69.7%
  • CSS 18.2%
  • TypeScript 5.1%
  • JavaScript 4.3%
  • Dockerfile 2.7%
Find a file
2026-01-22 12:56:17 +01:00
.vscode chore: initial commit 2024-09-02 20:45:11 +02:00
public chore: initial commit 2024-09-02 20:45:11 +02:00
src add legal notice and privacy policy 2026-01-13 21:40:20 +01:00
.containerignore cleanup 2026-01-08 20:18:36 +01:00
.gitignore chore: initial commit 2024-09-02 20:45:11 +02:00
astro.config.mjs configure container 2026-01-08 20:02:21 +01:00
Containerfile fix link issues 2026-01-18 14:23:25 +01:00
nginx.conf explicitly listen on ipv6 too 2026-01-22 12:56:17 +01:00
package.json configure container 2026-01-08 20:02:21 +01:00
pnpm-lock.yaml add more social links 2025-12-28 19:23:16 +01:00
pnpm-workspace.yaml configure container 2026-01-08 20:02:21 +01:00
README.md chore: initial commit 2024-09-02 20:45:11 +02:00
tsconfig.json chore: initial commit 2024-09-02 20:45:11 +02:00

Astro Starter Kit: Blog

npm create astro@latest -- --template blog

Open in StackBlitz Open with CodeSandbox Open in GitHub Codespaces

🧑‍🚀 Seasoned astronaut? Delete this file. Have fun!

blog

Features:

  • Minimal styling (make it your own!)
  • 100/100 Lighthouse performance
  • SEO-friendly with canonical URLs and OpenGraph data
  • Sitemap support
  • RSS Feed support
  • Markdown & MDX support

🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

├── public/
├── src/
│   ├── components/
│   ├── content/
│   ├── layouts/
│   └── pages/
├── astro.config.mjs
├── README.md
├── package.json
└── tsconfig.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.

The src/content/ directory contains "collections" of related Markdown and MDX documents. Use getCollection() to retrieve posts from src/content/blog/, and type-check your frontmatter using an optional schema. See Astro's Content Collections docs to learn more.

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?

Check out our documentation or jump into our Discord server.

Credit

This theme is based off of the lovely Bear Blog.