This project was created using the hello-astro theme/starter.
Hello Astro is a full featured Astro multi-purpose starter theme written in Typescript and TailwindCSS. It supports Markdown and MDX based pages and blog posts.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
pnpm install |
Installs dependencies |
pnpm dev |
Starts local dev server at localhost:3000 |
pnpm build |
Build your production site to ./dist/ |
pnpm preview |
Preview your build locally, before deploying |
pnpm lint |
Pretty print the source code |
pnpm check |
Check the source code for errors |
pnpm astro ... |
Run CLI commands like astro add, astro preview |
pnpm astro --help |
Get help using the Astro CLI |
Inside this starter, you'll see the following folders and files:
/
βββ public/
β βββ favicon.ico
βββ src/
β βββ assets/
β β βββ image.png
β β βββ gallery/
β β βββ gallery-name/
β β βββ image.jpg
β βββ components/
β β βββ header.astro
β βββ content/
β β βββ blog/
β β | βββ 2022-08-01-post.md
β β βββ doc/
β β | βββ documentation-page.md
| β βββ config.ts
β βββ layouts/
β β βββ base.astro
β β βββ blog.astro
β β βββ doc.astro
β βββ pages/
β β βββ index.astro
β β βββ contact.astro
β βββ config.ts
βββ package.json
Astro looks for .astro, .md or .mdx files in the src/pages/ directory. Each page is exposed as a route based on its file name.
src/components/ is where we put any Astro components and similarly src/layouts/ for layouts.
Images can be placed in src/assets/.
Blog and documentation content are created as collections of Markdown or MDX files in src/content.
Any static assets, eg. images, can be placed in the public/ directory.