Skip to content

Latest commit

Β 

History

History
59 lines (39 loc) Β· 2.13 KB

File metadata and controls

59 lines (39 loc) Β· 2.13 KB

My Homepage

English | δΈ­ζ–‡

This is my personal homepage deployed on GitHub Pages using Astro.

πŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/           # Static assets (images, icons, etc.)
β”‚   β”œβ”€β”€ components/       # Astro components
β”‚   β”œβ”€β”€ pages/            # Page files
β”‚   β”‚   └── index.astro   # Home page
β”‚   β”œβ”€β”€ scripts/          # JavaScript scripts
β”‚   └── styles/           # CSS stylesheets
└── package.json

Astro looks for page files (such as .astro or .md files) in the src/pages/ directory. Each page is exposed as a route based on its file name. For example, src/pages/index.astro corresponds to the root path of the website.

src/components/ is used for reusable Astro components.

src/assets/ is used for static resources like images and icons.

The public/ directory is used for static files that need to be accessed directly (e.g., favicon, robots.txt).

🧞 Commands

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

πŸ“ Deploying to GitHub Pages

This project is configured to deploy to GitHub Pages. For detailed workflow configuration, please refer to the workflow file in the .github/workflows/ directory.

License

This project is licensed under the MIT License.


Connect with Me

Let's learn and grow together.

QR Code