This website is modified based on the Jekyll theme petridish.
- Install Jekyll following the official quickstart guide.
- Preferably, install Ruby+Devkit 2.78 and RubyGems 3.4.20
- Clone this repository to your computer
git clone https://github.com/Apollo-Lab-Yale/Apollo-Lab-Yale.github.io.git - Navigate to the cloned repository
cd Apollo-Lab-Yale.github.io - Install bundle executables
bundle install - Run the website locally
bundle exec jekyll serve
The repository structure follows that of Jekyll websites.
- General site settings: _config.yml
- Pages: pages/
- Posts: _posts/ (posts in this folder are displayed on the news page)
- Images & static files: assets/
- Top navigation: _data/navigation.yml
- Footer content: _data/footer.yml
- Team members: _data/team.yml
- Create a new file in _posts/ with the following filename format:
YYYY-MM-DD-title.md - Add the following header to the file:
--- title: <title> description: <description> background: img: <image path> ---titleis the title of the news postdescriptionis the description of the news postimgis the path to the image to be displayed on the news post. The image should be placed in folder named following the formatYYYY-MM-DDin assets/theme/images/news/. If the folder does not exist, create it.
- Add the content of the news post below the header
- Add a new entry to _data/publications.yml following the format of the existing entries.
- Add a new entry to _data/team.yml following the format of the existing entries.
- Add a profile picture of the lab member to assets/theme/images/team/. The image should be named following the format
firstname_lastname.jpgorfirstname_lastname.png.
- Create a new file in pages/ with the following filename format:
title.md - Add the following header to the file:
--- title: <title> permalink: /<permalink>/ ---titleis the title of the pagepermalinkis the permalink of the page
- Add the content of the page below the header
- Add the page to the navigation bar by adding the following entry to _data/navigation.yml:
- text: <title> href: /<permalink>/textis the title of the pagehrefis the permalink of the page