Skip to content

aefhm/page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xizhang.page - Personal Website

GitHub deployments

Why

I believe in long term content and that pages should last.

Where

This static site is deployed to Cloudflare Pages with naked domain redirect.

How

This site follows the structure below:

  • /recipes/{recipe.html}
  • /writings/index.html
  • /about

Local Development

Using http-server

  1. Navigate to the public directory:

    cd public
  2. Start the server using npx:

    npx http-server -p 8080 --cors

    Options used:

    • -p 8080: Runs on port 8080
    • --cors: Enables CORS for fonts and other resources
  3. Open your browser to:

    http://localhost:8080
    

Alternative: Using Python

If you don't have Node.js installed, you can use Python's built-in server:

# Python 3
python3 -m http.server 8080