My personal blog about tech, general or devops related topics
Find a file
2024-04-26 08:10:15 +00:00
.docker fix(nginx): rss redirect loop 2024-02-21 20:50:47 +01:00
.vscode migrate blog to astro 2022-10-23 12:08:29 +02:00
public chore(pgp): Update key with new expiry date 2024-01-28 19:19:43 +01:00
src fix(accessibility): Missing label for rss link 2024-02-21 20:47:17 +01:00
.dockerignore fix docker directory name 2022-10-23 12:34:57 +02:00
.editorconfig migrate blog to astro 2022-10-23 12:08:29 +02:00
.eslintrc.json chore(deps): Upgrade packages & fix typings + formatting 2024-02-21 20:19:57 +01:00
.gitignore migrate blog to astro 2022-10-23 12:08:29 +02:00
.gitlab-ci.yml ci: Only run deploy on default branch 2023-11-26 16:46:58 +01:00
.npmrc migrate blog to astro 2022-10-23 12:08:29 +02:00
astro.config.js chore(deps): Upgrade packages & fix typings + formatting 2024-02-21 20:19:57 +01:00
LICENSE migrate blog to astro 2022-10-23 12:08:29 +02:00
package.json fix(deps): update dependency eslint-plugin-astro to v1 2024-04-26 08:10:15 +00:00
pnpm-lock.yaml fix(deps): update dependency eslint-plugin-astro to v1 2024-04-26 08:10:15 +00:00
README.md chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02:00
renovate.json chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02:00
tailwind.config.js chore(deps): Upgrade packages & fix typings + formatting 2024-02-21 20:19:57 +01:00
tsconfig.json chore(deps): Upgrade packages & fix typings + formatting 2024-02-21 20:19:57 +01:00

Astro Starter Kit: Blog

npm create astro@latest -- --template blog

Open in StackBlitz

🧑‍🚀 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/
│   ├── 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.

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:3000
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.