This is the repository for the OHBM Sustainability and Environment Action Special Interest Group (SEA-SIG). It is built with the Jekyll static website generator and uses the Minimal Mistakes theme. Most of the website content is written using the Markdown syntax.
Existing pages can be updated through the browser by using the github.dev editor, which can be launched using the . keyboard shortcut. This will open a Visual Studio Code-like interface, where you should:
- Create a new branch by clicking on the button on the bottom left side of the editor (the default branch is called
main). - Make desired changes to the repository (i.e. create/edit files).
- Go to the "Source control" tab on the left sidebar, stage changes and commit/push.
- Open a pull request (PR) to merge the changes from your branch back to the
mainbranch (see here for more instructions).
In the new pull request, there will be a link to a preview of the website with your changes. Write a meaningful PR title and verify that the website looks as expected, then you can merge the PR. GitHub pages will then auto-update the actual website (may take a few minutes).
It is also possible to set up a development environment locally instead of only making changes on the browser. This requires more installation steps but has the benefit of being able to serve the website locally, which can lead to faster visualization of changes.
If you are on Windows, consider using the browser method instead of a local setup because the Windows command line is trickier to work with.
You need to be given "write" access to the repository. Ask other committee members to add you if needed.
- Git: most likely you already have this installed (try running
git --versionin a Terminal window). If not, see instructions here. - Ruby: follow instructions specific to your operating system on this page. The website is built with Ruby 3.1.
If this is your first time using Git on your computer, follow these steps to set up your GitHub account (you will only need to do this once):
- Configure Git following instructions here. Make sure to use the email associated with your GitHub account.
- Create and add an SSH key to your GitHub account (GitHub no longer allows the use of passwords for authentication through the command line). See instructions here and here.
Clone the repository:
git clone git@github.com:ohbmenvironment/website.git
Create a new branch and switch to it:
git checkout -b your_username/branch_name
To serve the website locally:
bundle exec jekyll serve --incremental
This should eventually print out something like this:
Server address: http://127.0.0.1:4000
Open a web browser and go to this URL to see the rendered website. The website should be rebuilt automatically whenever any files are changed (except for _config.yml).
Members of the active committee are shown near the bottom of the home page and on a dedicated "Team" page.
To add the team page for a new year:
- In
_data/teams.yml- Change the key for the previous year's team entry:
becomes something like this (use appropriate years)
latest: &latest
20XX-20YY: - Copy, uncomment, and fill in the template entry. It should be the only one with
latest: &latest
- Change the key for the previous year's team entry:
- In
_data/authors.yml- Add an entry for anyone who is not already in this document. Otherwise, their avatar will be the SEA-SIG logo.
- In the
_pages/teamsdirectory, make a new file for the previous year's team. You can copy the2024-2025.mdfile and rename it with the appropriate years20XX-20YY.md(see 1.1), and update all the years in the contents of that file. - In
_data/navigation.yml, scroll down to theteamssection and add an entry underCurrentfor the previous year's team:- title: 20XX-20YY url: /team-20XX-20YY/
- Check that the changes have been made correctly:
- On the home page, the "Our team" section should have the current team.
- On the Team page, the current team should be displayed, and there should be a new sub-page for the previous team.
Blog posts will appear in the News page. The most recent posts will also appear in the "Latest news" section of the home page.
To add a new blog post (for example announcing elections):
- Make a copy of
_posts/template.mdin the same directory. - Rename that file following this format:
YYYY-MM-DD-my-great-title.md. Note that themy-great-titlepart must be unique since it determines the page's URL. - Update the front matter (block at the top of this file) to have a new title.
- Optionally set tag(s) in the front matter. Tags allow for grouping of posts in the Tags page.
Events appear as sub-pages under the main Events page.
To add a new event page:
- Make a copy of
_pages/events/template.mdin the same directory. - Rename that file.
- Update the front matter (block at the top of this file) to have a new title and permalink.
- Add the page to the
_data/navigation.ymlfile'seventssection. Theurlfield must match the file's permalink.- If the event is for a new year, create a new section for the year.
- Otherwise, add it as a child of an existing section.