My personal blog about tech, general or devops related topics
Find a file
2023-10-06 00:52:37 +02:00
.docker chore: Update build deps & cleanup 2023-09-02 23:57:48 +02:00
.vscode migrate blog to astro 2022-10-23 12:08:29 +02:00
public remove ol favicon 🤖 2023-09-21 01:18:09 +02:00
src fix(mobile): Layout 2023-10-06 00:52:37 +02: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.cjs chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02:00
.gitignore migrate blog to astro 2022-10-23 12:08:29 +02:00
.gitlab-ci.yml ci: Add artifact upload again 2023-09-03 00:21:55 +02:00
.npmrc migrate blog to astro 2022-10-23 12:08:29 +02:00
.prettierrc.cjs chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02:00
astro.config.mjs chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02:00
LICENSE migrate blog to astro 2022-10-23 12:08:29 +02:00
package.json chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02:00
pnpm-lock.yaml chore: Update dependencies & astro to v3 🚀 2023-09-02 23:51:52 +02: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.cjs fix: font family name for inter font 2023-09-02 23:59:54 +02:00
tsconfig.json 💅 painting the nails 2023-09-21 00:38:16 +02: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.