This is your lab website. To update it, you only need to edit 3 YAML files. Thatβs it!
Edit: _data/authors.yml
john_doe: # Unique ID (firstname_lastname)
name: "John Doe, PhD" # Full name with degree
email: "john.doe@xjtlu.edu.cn" # Email address
bio: "AI; bioinformatics; proteins" # Keywords separated by semicolons
bio_long: "Full biography here..." # Longer description
avatar: /assets/images/people/bio-doe.jpg # Photo path
title: "PhD Student" # Position title
type: member # Use "member" or "alumn"
# Optional fields:
github: johndoe # GitHub username
linkedin: john-doe # LinkedIn username
twitter: johndoe # Twitter handle (without @)
google_scholar: ABC123 # Google Scholar ID
orcid: 0000-0000-0000-0000 # ORCID ID
ncbi_id: "Doe J" # For matching publications
# For alumni only:
current_position: "Scientist at Company" # Current job (alumni only)
Donβt forget: Add their photo to /assets/images/people/bio-lastname.jpg
(400x400px)
Edit: _data/papers.csv
id,title,journal,date,authors,link,doi,preprint_url,preprint_label,image
1,"Paper Title","Nature","2024 Mar","Chan KC, Doe J","https://doi.org/10.1038/xxx","10.1038/xxx","","","paper1.jpg"
Donβt forget: Add paper thumbnail to /assets/images/papers/paper1.jpg
(500x300px)
Edit: _data/navigation.yml
main:
- title: "Research" # Menu text
url: /research/ # Page URL
- title: "Publications"
url: /publications/
- title: "People"
url: /people/
- title: "News"
url: /news/
- title: "Contact"
url: /contact/
Create files in _posts/
with format: YYYY-MM-DD-title.md
---
layout: single
title: "Welcome New Lab Member"
categories: news
excerpt: "Brief summary for preview"
---
Your news content here in markdown.
Edit: _config.yml
(lines 16-20)
title: "Your Lab Name"
subtitle: "Your Research Focus"
description: "Lab description"
url: "https://yourusername.github.io"
skblnw.github.io/
βββ _config.yml # Site settings
βββ _data/
β βββ authors.yml # Lab members (MAIN FILE)
β βββ papers.csv # Publications list
β βββ navigation.yml # Website menu
βββ _pages/ # Website content pages
βββ _posts/ # News posts
βββ assets/images/ # All images
βββ ARCHIVE/ # Old complicated files (ignore)
git add .
git commit -m "Update website"
git push
Website updates in 2-5 minutes at: https://skblnw.github.io
Task | File to Edit | What to Do |
---|---|---|
Add new member | _data/authors.yml |
Add entry + photo |
Remove member | _data/authors.yml |
Change type: member to type: alumn |
Add publication | _data/papers.csv |
Add row + thumbnail |
Change lab name | _config.yml |
Edit title field |
Add menu item | _data/navigation.yml |
Add title/url pair |
Post news | _posts/ |
Create new markdown file |
/assets/images/
Thatβs it! No complicated scripts, no confusing folders. Just edit the YAML files and your website updates automatically.