mgao6767 / adriangao

My personal website.

Home Page:https://mingze-gao.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mingze Gao's website

🍻 a minimalist personal site with some style and serious nonsense

Go to mingze-gao.com

πŸš€ Project Structure

This site is build with Astro with the following structure:

β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ layouts/
β”‚   └── pages/
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
└── tsconfig.json

Astro looks for .astro or .md/.mdx 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 to place any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory.

🧞 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:3000
npm run build Build production site to ./dist/
npm run preview Preview 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

πŸ”¨ Development

With Node and npm installed, run the following commands:

git clone https://github.com/mgao6767/adriangao.git
cd adriangao
npm install
npm run dev

Configuration:

  • Google Analytics v4 code is located at src/components/BaseHead.astro
  • giscus comment code is located at src/layouts/BlogPost.astro

Credit

This theme is based off of the Astro's blog theme and lovely Bear Blog.

About

My personal website.

https://mingze-gao.com


Languages

Language:MDX 57.8%Language:Astro 19.4%Language:JavaScript 11.1%Language:SAS 7.3%Language:CSS 3.4%Language:Python 0.6%Language:TypeScript 0.4%