This commit is contained in:
@@ -1,46 +1,26 @@
|
||||
# Astro Starter Kit: Basics
|
||||
# personal-site
|
||||
|
||||
Dylan Benzi's portfolio. Astro 7, static output, split-flap hero.
|
||||
|
||||
```sh
|
||||
pnpm create astro@latest -- --template basics
|
||||
pnpm install
|
||||
pnpm dev # http://localhost:4321
|
||||
pnpm build # outputs ./dist
|
||||
```
|
||||
|
||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||
## Editing content
|
||||
|
||||
## 🚀 Project Structure
|
||||
| What | Where |
|
||||
| --- | --- |
|
||||
| Hero board text (24 columns × 8 rows) | `src/data/board.ts` |
|
||||
| Name, links, readouts, résumé | `src/data/site.ts` |
|
||||
| Projects (one markdown file each) | `src/content/projects/` |
|
||||
| Experience timeline | `src/data/experience.ts` |
|
||||
| Skills | `src/data/skills.ts` |
|
||||
| Photos (first three, alphabetical) | `src/assets/photos/` |
|
||||
|
||||
Inside of your Astro project, you'll see the following folders and files:
|
||||
Don't commit a résumé that includes a phone number or street address. Put a public version in `public/` and set `resume` in `site.ts`.
|
||||
|
||||
```text
|
||||
/
|
||||
├── public/
|
||||
│ └── favicon.svg
|
||||
├── src
|
||||
│ ├── assets
|
||||
│ │ └── astro.svg
|
||||
│ ├── components
|
||||
│ │ └── Welcome.astro
|
||||
│ ├── layouts
|
||||
│ │ └── Layout.astro
|
||||
│ └── pages
|
||||
│ └── index.astro
|
||||
└── package.json
|
||||
```
|
||||
## Deploy
|
||||
|
||||
To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/).
|
||||
|
||||
## 🧞 Commands
|
||||
|
||||
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:4321` |
|
||||
| `pnpm build` | Build your production site to `./dist/` |
|
||||
| `pnpm preview` | Preview your build locally, before deploying |
|
||||
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
|
||||
| `pnpm astro -- --help` | Get help using the Astro CLI |
|
||||
|
||||
## 👀 Want to learn more?
|
||||
|
||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||
Pushing to `master` runs `.gitea/workflows/deploy.yml`, which builds and rsyncs `dist/` to `DEPLOY_TARGET`. Set the `SITE_URL` variable to the real domain so the sitemap and canonical links are right.
|
||||
|
||||
Reference in New Issue
Block a user