This project is also has an Eleventy version - see 11ty version
If you wanna try this repo in work, follow these steps:
Bun:
bun i && bun devnpm:
npm i && npm run dev/
βββ dist
βββ public
β βββ styles
β βββ themes
β β βββ dark.css
β β βββ light.css
β βββ default-layout.css
β βββ fonts.css
β βββ global.css
β βββ index.css
β βββ switcher.css
βββ src
β βββ components
β β βββ ExperienceCard.astro
β β βββ ThemeSwitcher.astro
β βββ data
β β βββ en
β β β βββ experience.json
β β βββ ru
β β βββ experience.json
β βββ layouts
β β βββ Layout.astro
β βββ pages
β β βββ experience
β β β βββ ru
β β β β βββ index.mdx
β β β βββ index.mdx
β β βββ ru
β β β βββ index.mdx
β β βββ index.mdx
β βββ scripts
β β βββ index.js
β βββ env.d.ts
βββ CNAME
βββ README.md
βββ astro.config.mjs
βββ bun.lockb
βββ package-lock.json
βββ 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.
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
bun i |
Installs dependencies |
bun dev |
Starts local dev server at localhost:4321 |
bun run build |
Build your production site to ./dist/ |
bun preview |
Preview your build locally, before deploying |
bun astro ... |
Run CLI commands like astro add, astro check |
bun astro -- --help |
Get help using the Astro CLI |