




Astro Advanced Blog Template
π 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
Deploy
β¨ Features
- π Astro 1.0 Static Site Generation (SSG)
- π― Full Score on performance + all Web Core Vitals
- π Zero JS runtime
- π Dark Mode
- β Next-Gen favicons (SVG+PNG)
- π SEO-friendly setup with canonical URLs and OpenGraph data
- π Full Markdown support (MDX)
- πΊ Sitemap generation
- ποΈ Site compression
- β¬οΈ Deploy to Netlify, Vercel or FTP
- π€ robots.txt
- π RSS 2.0 generation
π 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:
Command | Action |
---|---|
pnpm install | Installs dependencies |
pnpm run dev | Starts local dev server at localhost:3030 |
pnpm run build | Build your production site to ./dist/ |
pnpm run preview | Preview your build locally, before deploying |
pnpm deploy | Deploy your build via FTP |
π Want to learn more?
Feel free to check Astroβs documentation or jump into Astroβs Discord server.