Astro theme : astro-advanced-blog-template

Personal Blog Template Powered by Astro

BlogDarkSEORSS
astro-advanced-blog-template
astro-advanced-blog-templateastro-advanced-blog-templateastro-advanced-blog-templateastro-advanced-blog-template
Free
MIT

Astro Advanced Blog Template

Astro Netlify Status Vercel License

πŸ‘‰ Check out the Live Demos at ✨ Netlify or ✨ Vercel

πŸ‘©β€πŸš€ Getting Started

Locally

# Using NPM
npm init astro -- --template redwerkz/astro-advanced-blog-template
# Using Yarn
yarn create astro -- --template redwerkz/astro-advanced-blog-template
# Using PNPM
pnpm create astro -- --template redwerkz/astro-advanced-blog-template

Web

Open in StackBlitz Open in CodeSandbox

Deploy

Deploy on Netlify Deploy with Vercel

✨ Features

πŸš€ Project Structure

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

/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   └── icons/
β”‚   β”‚       β”œβ”€β”€ favicon_dark-16.png
β”‚   β”‚       β”œβ”€β”€ favicon_dark-16.png
β”‚   β”‚       β”œβ”€β”€ favicon_light-16.png
β”‚   β”‚       β”œβ”€β”€ favicon_light-16.png
β”‚   β”‚       └── favicon.svg
β”‚   └── robots.txt
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ BaseHead.astro
β”‚   β”‚   β”œβ”€β”€ Bio.astro
β”‚   β”‚   β”œβ”€β”€ Footer.astro
β”‚   β”‚   β”œβ”€β”€ Header.astro
β”‚   β”‚   β”œβ”€β”€ Logo.astro
β”‚   β”‚   └── Nav.astro
β”‚   β”œβ”€β”€ data/
β”‚   β”‚   └── blog-posts/
β”‚   |       β”œβ”€β”€ hello-world.md
β”‚   |       └── markdown-test.md
β”‚   β”œβ”€β”€ layouts/
β”‚   |   └── BaseLayout.astro
β”‚   β”œβ”€β”€ pages/
β”‚   |   β”œβ”€β”€ blog/
β”‚   |   |   β”œβ”€β”€ [slug].astro
β”‚   |   |   └── index.astro
β”‚   |   β”œβ”€β”€ about.astro
β”‚   |   └── index.astro
β”‚   β”œβ”€β”€ styles/
β”‚   |   β”œβ”€β”€ fonts.css
β”‚   |   └── global.css
β”‚   └── utils/
β”‚       └── getPostData.ts
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .npmrc
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ deploy.js
β”œβ”€β”€ LICENSE
β”œβ”€β”€ pnpm-lock.yaml
β”œβ”€β”€ 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:

CommandAction
pnpm installInstalls dependencies
pnpm run devStarts local dev server at localhost:3030
pnpm run buildBuild your production site to ./dist/
pnpm run previewPreview your build locally, before deploying
pnpm deployDeploy your build via FTP

πŸ‘€ Want to learn more?

Feel free to check Astro’s documentation or jump into Astro’s Discord server.