My personal website. Plain HTML/CSS/JS — no build step, no dependencies. Styled after the classic academic single-page template (Lato type, blue/orange links), but with a responsive flexbox layout so it works on mobile.
index.html the whole page (edit this)
stylesheet.css all styling (colors + layout live at the top)
script.js optional hover-GIF thumbnails + auto footer year
images/ profile photo, paper thumbnails, favicon
files/ put your cv.pdf here (linked from the header)
.nojekyll tells GitHub Pages to serve files as-is (no Jekyll build)
Everything you need to change is in index.html, marked with EDIT ME
comments and [bracketed] placeholders. In order of importance:
- Name — confirm the spelling of "Han Xu" (I inferred it from your GitHub display name + handle; fix it if it's wrong).
- Bio — three short paragraphs in the header. Fill in the
[brackets]. - Links row — Email is set to
hxuany0@gmail.comand GitHub toxuyhan. Add your real Scholar / Twitter / LinkedIn handles, or delete any line you don't want. (Consider whether you want a personal Gmail public here vs. an institutional address.) - Photo — drop a real photo at
images/profile.svg's spot; a square.jpg/.png~600×600 looks best. Update the<img src>if you change the filename. - News / Research / Selected Papers — the entries are illustrative
examples. Replace with your real content; duplicate a
.pubblock per paper.
Any static server works, e.g.:
python3 -m http.server 8000
# then open http://localhost:8000Your old repo is an untouched Jekyll template; these steps overwrite it while keeping the repo (and its URL, stars, history). Run from this folder:
# 1. point this repo at your GitHub Pages repo
git remote add origin https://github.com/xuyhan/xuyhan.github.io.git
# 2. commit
git add -A
git commit -m "Rebuild personal site from scratch"
# 3. replace whatever is on the default branch
# (force-push overwrites the old template completely)
git branch -M main
git push -f origin mainThen in the repo on GitHub: Settings → Pages → Build and deployment →
Source: "Deploy from a branch" → Branch: main / (root) → Save.
Give it a minute; the site goes live at https://xuyhan.github.io.
Note: the old repo's default branch may be
master. If you'd rather keep that branch name, usegit branch -M masterandgit push -f origin master, and set Pages to serve frommaster.