Fork, edit, live -- just customizing one readable file.
Demo: https://shunchi.dev/site-template/
- Fork this repo.
- Rename repo to your site name:
- Settings (Top Bar)
- General (Left Sidebar)
- Repository name -> Input your site name -> Click "Rename"
- Enable Github Pages:
- Settings (Top Bar)
- Pages (Left Sidebar)
- Source -> Change "Deploy from a branch" to "GitHub Actions"
- Run deployment workflow:
- Actions (Top Bar)
- Deploy to GitHub Pages (Left Sidebar)
- Click "Run workflow"
- Your site will be live at
https://<your-username>.github.io/<your-site-name>/after a few minutes. - Edit
src/content.jsxdirectly on GitHub, commit, and your site will be updated automatically.
Alternatively, you can customize and preview your site locally.
git clone https://github.com/your-username/your-site-name
cd your-site-name
npm install
npm run dev- Edit
src/content.jsxand live preview at http://localhost:5173/. - Your site will be updated automatically if you push your commits to GitHub.