Official group website repository for the Shuai Computational and Integrated Hydrology Group (SCI-Hy) group at Utah State University.
This is built from Jekyll using the al-folio template. For more information on how to use the template to build a website, see my blog post.
The al-folio template allows you to build a personal website easily. However, the current template does not include elements (e.g., a team page) for a group website. Fortunately, it is relatively straightforward to add another page in the template, and I found the diagnostics group and Programming Group beautifully demonstrated this with a dedicated Team page. I was only able to find the source code for the diagnostics group, which is on GitHub. So I incorporated the changes made in that GitHub repo into my group website.
Here I will demonstrate the steps I took to add a Team page.
- Create
_membersfolder under root directory. Inside the_members, create a markdown file for each member of your group (example). Note that the members are organized into different groups (e.g., faculty, graduate students, post-doc, etc.) and are ordered based on the keywordgroup_rankin the header. - Create a
team.mdfile inside_pagesfolder. This is the file that lists all members of the group. The only thing you will want to change is the path to the profile pictures (default:/assets/img/team/). You need to create such path underassetsand put related profile pics. - Add team css class in
_sass/_base.scss. Add the following class to the file (can be placed anywhere).
// Team
.team {
.card-body {
a:first-of-type {
text-decoration: none;
}
padding: 13.5px;
}
}- Add collections in
_config.yml. Put themembersfollowing undercollections:. This is important for members to show up on Team page.
collections:
news:
defaults:
layout: post
output: true
permalink: /news/:path/
projects:
output: true
permalink: /projects/:path/
members:
output: true
permalink: /members/:path- Rebuild the website. Voila! Your new group website is up and running.
This applies to new group members who would like to add their own profile to the Members page. Before you start, you may want to review common git commands (I have a quick tutorial here) and a documentation on Pull Request.
- First, make sure you have created a GitHub account. This is necessary for copying and making changes to current repository on GitHub.
- Fork current repository. It will create a copy under your own account.
- Go to the forked copy (e.g.,
https://github.com/YOUR_GITHUB_NAME/hydroaggie.github.io). You can either use the online VScode editor to make changes or download the files to your local machine through a GUI (e.g., GitHub Desktop) or a terminal (e.g., Windows PowerShell). - Create a new branch (e.g.,
git checkout -b ADD_PROFILE). This is important for submitting a Pull Request later. - Inside the new branch and under the
_membersfolder, you can add your own profile. The easiest way to create a profile is by duplicating one of the existing member profiles. Edit the information as needed. At the minimum, you should add your email address, a profile picture, and a brief bio. To add your profile picture, you will first need to copy your photo toassets/img/teamfolder and then provide the name of the photo in your profile (i.e., underprofile-->image:). - Once done editing, submit a Pull Request on GitHub. Don't worry about breaking anything. It won't!
- After I receive a notification about the Pull Request, I will review and merge your changes to current repository. In a few minutes, you should be able to see your profile live on hydroaggie.github.io.
The theme is available as open source under the terms of the MIT License.
Originally, al-folio was based on the *folio theme (published by Lia Bogoev and under the MIT license). Since then, it got a full re-write of the styles and many additional cool features.
