npm create astro@latest -- --template hvxley/cloudstrap
This free Astro starter template brings Bootstrap, Astro-Icons, and Sass to your project.
Check back again soon!
Features:
- Astro v4.9
- Bootstrap v5.3
- Color mode featuring Light, Dark, and Auto.
- Icon Pack from astro-icons, iconify, and remix
- Mobile-first design
- SEO Optimization
- Netlify-ready Contact Form with Recaptcha
- Sitemap
Inside Cloudstrap template, you'll see the following folders and files:
/
βββ public/
β βββ favicons/
β β βββ favicon.svg
β βββ bootstrap-logo-white.svg
β βββ lighthouse.png
β βββ humans.txt
β βββ robots.txt
βββ src/
β βββ components/
β β βββ ColorModeButton.astro
β β βββ ColorModeGraphics.astro
β β βββ FormattedDate.astro
β β βββ Footer.astro
β β βββ Meta.astro
β β βββ Navbar.astro
β βββ content/
β β βββ blog/
| β β βββ bootstrap-cheatsheet.md
| β β βββ bootstrap-grid.md
β β βββ config.ts
β βββ layouts/
β β βββ BlogPost.astro
β β βββ Layout.astro
β βββ pages/
β β βββblog/
| β β βββ [...slug].astro
| β β βββ index.astro
β β βββ about.astro
β β βββ index.astro
β β βββ thankyou.astro
β βββ scripts/
β β βββ bs-initial.js
β β βββ color-modes.js
β βββ styles/
β β βββ stylesheet.scss
β βββ env.d.ts
βββ .gitignore
βββ astro.config.mjs
βββ package.json
βββ README.md
βββ 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 if they do not require any transformation or in the assets/
directory if they are imported directly.
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 |
To generate a new Sitemap, update your domain URL in astro.config.mjs
and run npm run build
.