This template was created to accompany the session
Hosting a Public-facing Class Blog with GitHub pages and Jekyll
presented by Matthew Andres Moreno and Acacia Ackles at Enriching Scholarship 2024.
https://mmore500.com/jekyll-class-blog
- Use the
Add File > Create new file
button to add a new file_posts/year-mm-dd-slug.md
whereyear-mm-dd
is today's date and "slug
" a keyword or two (containing only alphanumeric,-
, and_
characters). - Paste in the following boilerplate and fill in your desired content.
--- layout: post author: Your name goes here title: Title goes here --- Blog post content goes here.
- Click
Commit changes
in the upper right. Then you have two choices: a. to immediately add the post to the blog, use theCommit directly to the main branch
option. b. to begin a review process before posting (i.e., for peer feedback), use theCreate a new branch for this commit and start a pull request
option. - If you posted the content for immediate release, wait about one minute for site build and deploy to complete.
You can monitor this process from the
Actions
pane of the repository page (https://github.com/yourusername/repository-name/actions
). Otherwise, your pull request should be visible on thePull requests
pane of the repository page (https://github.com/yourusername/repository-name/pulls
). The blog entry will be posted once you clickMerge pull request
at the bottom of your pull request's page.
- Click
Use this template > Create a new repository
on GitHub or click here. - Set the
Repository name
with the URL where the blog should appear. For example, choosingrepository-name
would result in the blog being served athttps://yourusername.github.io/repository-name
. - Click
Create Repository
at the bottom right of the repository creation page. - Navigate to the new repository's page,
https://github.com/yourusername/repository-name
- Click the
_config.yaml
file to open it. Then, click the pencil icon in the upper right ("Edit this file") to edit. - Change
url
field tohttps://yourusername.github.io/repository-name
(substituting your username and repository name). - Click the
Commit Changes
button in the top right, thenCommit Changes
on the confirmation panel that appears. - Navigate to the
Settings > Pages
pane of your repository page (https://github.com/yourusername/repository-name/settings/pages
). - Set your deployment branch as
main
and your deployment directory as/ (root)
. - Click the
enforce https
checkbox. - Wait about one minute for site build and deploy to complete.
You can monitor this process from the
Actions
pane of the repository page (https://github.com/yourusername/repository-name/actions
) - Once the deployment completes (green checkmark), your page should be available at
https://yourusername.github.io/repository-name
.
For more information, see our slide deck at https://hopth.ru/cs.