The umich-labs-template is a starting point for a research laboratory's or project's GitHub Pages web site using the umich-labs Jekyll theme.
This template uses a permanent fork of the petridish theme, with extensive modifications from that base but with a similar look and feel.
To get started quickly, click here to create a new repository from this template.
You will be prompted for the user and name of the repository you would like to create. We recommend that you use 'USER_NAME.github.io' as the name of your repository, e.g., to create repository https://github.com/USER_NAME/USER_NAME.github.io. That way, your web site will be available through the URL https://USER_NAME.github.io.
Activate your new web site for loading via github.io as follows:
After a minute or two, your site will be live at the link indicated on Settings / Pages. It will track your repository to keep your site up to date whenever you push or merge content changes into the 'main' branch.
You can edit files directly within GitHub, or by cloning the repository to your local computer and editing and pushing changes from there (see below).
Open and edit the following files, following the instructions in the comments regarding which specific lines you should edit to match your needs:
Explore and edit all of the files within your new repo. They create the contents of your web page (the programming underlying the web site is provided by the umich-labs theme). Briefly:
Because of the straightforward file structure, we encourage you to do most editing of your website in the Visual Studio Code editor. The basic steps are:
GitHub will automatically rebuild our site whenever you push changes to it.
Editing site content in markdown is quite easy. First, pages require Jekyll "front matter" as YAML content between the '---' markers at the top of the file. README files will help you see what information is expected.
https://www.google.com/search?q=simple+yaml
---
title: xxx
---
Otherwise, page content is mostly just typed as text, with a few simple markdown tags providing headings, links, and highlights (see template files for examples).
https://www.markdownguide.org/basic-syntax/
### Heading Level 3
#### Heading Level 4
**Bold Text**
_Italic Text_
- list item 1
- list item 2
[Link Text](http://link.to.site)
![Image Text](http://path.to.image)
![Image Text]({{ assets/images/xyz.jpg | relative_url }})
The last example above uses Jekyll Liquid syntax to call the 'relative_url' function for an image added to the assets/images folder. In addition, the umich-labs theme provides a few other Liquid helpers. The following will include a citation as a link to a PubMed search ('search' might be text or a PMID):
... as shown by Wilson {% include citation.html search="xyz" %}.
The following will include a responsive figure panel with a border, caption and image:
{% include figure.html
image="assets/images/xyz.jpg"
title="Figure Title"
caption="Figure caption text."
%}
In addition to the basic content editing steps above, there are a few tasks where interactive helpers make life easier. These are encapsulated into a minimal content management system (CMS) built into your new site. The CMS is R-based and easily accessed within VS Code:
The first time you use the CMS you will need to wait for various R packages to be installed.