A modern, easy-to-maintain lab website built with Jekyll and hosted on GitHub Pages. All content is managed through simple markdown files that anyone in the lab can edit.
All content is stored in markdown files. To edit:
- Navigate to the file you want to edit
- Click the pencil icon (Edit this file)
- Make your changes
- Scroll down and click "Commit changes"
- The website will automatically update in a few minutes
Edit index.md to change the home page content, hero section, and highlights.
Edit research.md to update research areas and descriptions.
Edit publications.md to add new publications. For the most up-to-date list, make sure your ORCID profile is current.
-
Open
_data/team.yml -
Copy the template for a new member
-
Fill in the details:
name: Full namerole: One of: "Principal Investigator", "Postdoctoral Researcher", "PhD Student", "Undergraduate Student", "Research Staff", "Alumni"image: Path to photo (upload toassets/images/team/)bio: Short description (1-2 sentences)email: Email addressgithub,twitter,orcid: Optional social/academic linksorder: Number for sorting (lower numbers appear first)
-
Upload their photo to
assets/images/team/
To add or update photos:
- Go to
assets/images/(orassets/images/team/for team photos) - Click "Add file" → "Upload files"
- Drag and drop your image
- Commit the changes
- Update the relevant markdown file to reference the new image path
To run the site locally for testing:
- Ruby (2.7 or higher)
- Bundler (
gem install bundler)
# Clone the repository
git clone https://github.com/YOUR-USERNAME/YOUR-REPO-NAME.git
cd YOUR-REPO-NAME
# Install dependencies
bundle install
# Run the local server
bundle exec jekyll serve
# Open http://localhost:4000 in your browserThe site will automatically reload when you make changes to files.
-
Create a GitHub repository
- Go to https://github.com/new
- Name it
faeder-lab(or whatever you prefer) - Make it public
- Don't initialize with README (we already have one)
-
Push your code
cd /path/to/Website git init git add . git commit -m "Initial commit" git branch -M main git remote add origin https://github.com/YOUR-USERNAME/REPO-NAME.git git push -u origin main
-
Enable GitHub Pages
- Go to your repository settings
- Click "Pages" in the left sidebar
- Under "Source", select "main" branch
- Click "Save"
- Your site will be available at
https://YOUR-USERNAME.github.io/REPO-NAME/
-
Update configuration
- Edit
_config.yml - Update
urltohttps://YOUR-USERNAME.github.io - Update
baseurlto/REPO-NAME(or leave empty if using a user site) - Update social media handles and ORCID ID
- Commit and push changes
- Edit
- In your repository settings → Pages
- Enter your custom domain (e.g.,
faederlab.org) - Create a
CNAMEfile in the root with your domain name - Update your DNS settings (see GitHub docs)
.
├── _config.yml # Site configuration
├── _layouts/ # HTML templates
│ ├── default.html # Base template
│ ├── home.html # Home page template
│ └── page.html # Standard page template
├── _includes/ # Reusable components
│ └── team-member.html # Team member card
├── _data/ # Data files
│ └── team.yml # Team member information
├── assets/ # Static files
│ ├── css/
│ │ └── style.scss # Main stylesheet
│ └── images/ # Images
│ └── team/ # Team photos
├── index.md # Home page content
├── research.md # Research page
├── team.html # Team page
├── publications.md # Publications page
└── README.md # This file
Edit assets/css/style.scss and modify the color variables at the top:
$primary-color: #2563eb; // Main theme color
$secondary-color: #0891b2; // Secondary accent
$accent-color: #f59e0b; // HighlightsFonts are loaded from Google Fonts. To change them:
- Edit
_layouts/default.html - Update the Google Fonts link
- Edit
assets/css/style.scssand update$font-primaryand$font-secondary
- Create a new markdown file (e.g.,
software.md) - Add front matter:
--- layout: page title: Software description: Lab software and tools ---
- Add your content below the front matter
- Add the page to navigation in
_config.yml
- Jekyll Documentation: https://jekyllrb.com/docs/
- GitHub Pages Documentation: https://docs.github.com/en/pages
- Markdown Guide: https://www.markdownguide.org/
For lab-specific questions, contact the lab web administrator or open an issue in the repository.
The easiest way to contribute is directly through GitHub's web interface:
- Navigate to the file on GitHub
- Click the pencil icon to edit
- Make your changes
- Write a brief description of what you changed
- Click "Commit changes"
# Create a branch for your changes
git checkout -b update-research-page
# Make your changes
# ...
# Commit and push
git add .
git commit -m "Update research descriptions"
git push origin update-research-page
# Create a pull request on GitHub for reviewThis website template is available for use by academic labs. The content is © Faeder Lab.