Personal Academic Website
A clean, data-driven personal website template for PhD students and researchers.
Quick Start
# Serve locally
python3 -m http.server 8000
# Open in browser
open http://localhost:8000
Note: You must use a local server (not file://) because the site loads JSON data via fetch().
How to Update Content
All content is stored in JSON files under the data/ folder. You never need to edit HTML.
1. Profile (data/profile.json)
Update your name, title, affiliation, bio, photo path, and social links:
{
"name": "Your Name",
"title": "PhD Student",
"affiliation": "University Name",
"affiliationUrl": "https://university.edu",
"bio": "Your bio with <a href='...'>HTML links</a> supported.",
"photo": "assets/images/profile.jpg",
"email": "you@university.edu",
"scholar": "https://scholar.google.com/...",
"github": "https://github.com/...",
"linkedin": "https://linkedin.com/in/..."
}
2. News (data/news.json)
Add new entries at the top of the array (newest first):
[
{
"date": "2026-05",
"text": "๐ Paper accepted at <a href='...'>CVPR 2026</a>!"
}
]
3. Publications (data/publications.json)
Add new publications at the top of the array:
[
{
"title": "My Paper Title",
"authors": "<strong>Your Name</strong>, <a href='#'>Co-Author</a>",
"venue": "Conference Name (ABBR), 2026.",
"award": "Oral Presentation",
"thumbnail": "assets/images/publications/paper1.jpg",
"year": 2026,
"links": {
"paper": "https://arxiv.org/abs/...",
"project": "https://project.github.io",
"code": "https://github.com/...",
"bibtex": "@inproceedings{...}"
}
}
]
Fields:
award โ Optional. Leave as "" if none.
thumbnail โ Optional. Leave as "" for auto-generated placeholder.
links.project, links.code โ Optional. Omit or set to "" to hide.
4. Adding Publication Thumbnails
- Save your thumbnail image (recommended: 320ร200px) to
assets/images/publications/
- Set
"thumbnail": "assets/images/publications/my_paper.jpg" in the publication entry
5. Profile Photo
Replace assets/images/profile.jpg with your own photo. Recommended: square, at least 400ร400px.
Folder Structure
โโโ index.html # Main HTML page (rarely needs editing)
โโโ css/style.css # Styles (customize colors/fonts here)
โโโ js/main.js # Data loader & renderer
โโโ js/background.js # Optional animated background sketches (on/off flag inside)
โโโ data/
โ โโโ profile.json # Your profile info
โ โโโ news.json # News entries
โ โโโ publications.json # Publication entries
โโโ assets/
โ โโโ images/
โ โ โโโ profile.jpg # Your photo
โ โ โโโ publications/ # Paper thumbnails
โ โโโ files/ # PDFs, slides, etc.
โโโ README.md
Animated Background Sketches (optional)
The site can show a subtle, low-opacity background of floating line-art sketches (car, LiDAR waves, steering wheel, guitar, drums, music note, tennis racket) that drift slowly behind the content. They're purely decorative: fixed in place, non-interactive (pointer-events: none), and low contrast so they never get in the way of reading.
Turn it on/off: open js/background.js and flip the flag at the top before committing:
const ENABLE_BACKGROUND_SKETCHES = true; // set to false to disable
Notes:
- The feature auto-disables itself if the visitor's OS has "reduce motion" turned on โ no extra config needed.
- To change how many icons appear, edit
ICON_COUNT in the same file.
- To add/remove sketch shapes, edit the
ICONS array (each entry is an SVG <path> d string, drawn in a 24ร24 viewBox).
- Icon color and opacity are controlled in
css/style.css under .bg-decor__icon (and its dark-mode override), so they automatically adapt to light/dark mode.
Deploy to GitHub Pages
- Create a repo named
yourusername.github.io
- Push this folder to the repo
- Go to Settings โ Pages โ Source โ Deploy from a branch โ main
- Your site will be live at
https://yourusername.github.io
git init
git add .
git commit -m "Initial website"
git remote add origin https://github.com/yourusername/yourusername.github.io.git
git push -u origin main
Connect to Google Search Console
Google Search Console shows how your site performs in Google Search: which queries lead to it, click-through rate, impressions, indexing status, and crawl errors. It's free and works well with a static GitHub Pages site.
1. Add your site as a property
- Go to Google Search Console and sign in.
- Click Add property and choose the URL prefix option (not "Domain"), entering your full site URL, e.g.
https://yourusername.github.io.
2. Verify ownership (HTML tag method โ easiest for GitHub Pages)
- Search Console will show a meta tag like:
<meta name="google-site-verification" content="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
- Paste it into
index.html, inside the <head> section (near the other <meta> tags).
- Commit and push the change so it's live on GitHub Pages.
- Back in Search Console, click Verify.
Alternative: the "HTML file" method also works โ download the verification file Google gives you, drop it in the root of this project (next to index.html), then commit and push before clicking Verify.
3. Submit a sitemap (optional but recommended)
This template doesn't ship a sitemap.xml by default since it's a single-page site, but you can submit the homepage URL directly under Sitemaps in the sidebar, or generate a simple sitemap if you add more pages (e.g. a separate CV or project page).
4. What you'll see
After a few days of traffic, the Performance tab shows total clicks, impressions, average position, and the actual search queries people used to find your site.
Traffic Analytics (optional)
Search Console focuses on search performance, not overall visitor traffic (direct links, social shares, etc.). For full traffic stats (visitors, page views, referrers, countries), add Google Analytics:
- Create a property at Google Analytics and get your Measurement ID (format
G-XXXXXXXXXX).
- Add this snippet to
index.html, just before the closing </head> tag:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>
- Replace both instances of
G-XXXXXXXXXX with your actual Measurement ID, then commit and push.
Customization
Colors
Edit the CSS custom properties in css/style.css at the top of the file:
:root {
--color-accent: #2563eb; /* Main accent color */
--color-accent-hover: #1d4ed8; /* Hover state */
--color-text: #1a1a2e; /* Main text */
--color-text-secondary: #555770;
/* ... */
}
Adding New Sections
- Add a new
<section> in index.html
- Create a new JSON file in
data/
- Add a fetch + render function in
js/main.js
License
MIT โ Feel free to use and modify.