This guide explains how to update content on the VRL site (people, research, publications, alumni, and news).
The site uses a simple content management approach:
- Content is stored in JSON files in the
data/
directory - JavaScript loads these files and renders content dynamically
- To update content, simply edit the relevant JSON file
File: data/people/people.json
People are organized by categories:
- faculty
- graduateStudents
- researchers
- undergraduates
Example person entry:
{
"name": "First Last",
"role": "Ph.D. Student",
"photo": "img/people/person.jpg",
"shortRole": "Ph.D. Student",
"bio": "Put their bio here",
"research": "Computer Vision",
"email": "[email protected]"
},
Adding a new person:
- Add their photo to
img/people/
folder - Add their entry to the appropriate category in
people.json
File: data/people/alumni.json
Example alumni entry:
{
"name": "Alumni Name",
"year": "2023",
"degree": "Ph.D.",
"thesis": "Thesis Title",
"position": "Current Position"
}
Alumni are automatically grouped by graduation year.
File: data/research/research.json
Example research project:
{
"title": "Project Title",
"description": "Project description text",
"beforeImage": "filename-before.png",
"afterImage": "filename-after.png"
}
Adding a new research project:
- Add before/after images to
img/research/
folder - Add project entry to
research.json
File: data/publications/publications.json
Publications are organized by year and tag. Available tags are in data/publications/tags.json
. Tags and images are many-to-many.
Example publication entry:
{
"id": id,
"title": "Paper Title",
"authors": "Paper Authors",
"year": year,
"month": "Month",
"publication_venue": "",
"abstract": "",
"pdf_link": "#",
"doi_link": "#",
"category": "recent",
"tags": ["tag1", "tag2"]
}
File: data/news/news.json
Example news entry:
{
"title": "News Title",
"date": "2023-03-19",
"content": "News content text"
}
The 3 most recent news items are displayed on the homepage.
- Images: Make sure to optimize images before adding (compress, resize)
- JSON Format: Ensure your JSON is properly formatted with correct commas, quotes, and brackets
- Testing: After updating, verify changes on the site to ensure everything appears correctly
- Backup: Always make a backup of JSON files before making major changes
If content doesn't appear after updating:
- Check browser console for JavaScript errors
- Verify JSON syntax using a JSON validator
- Clear browser cache and reload the page
- Ensure file paths and names are correct