This repository contains the source code for my personal blog. This README documents some of the steps needed to add stuff to the site, mainly just for my own reference.
This branch is protected, and from this branch the site will get deployed, so make sure to commit to a new branch (i.e. this is getting pushed to chg081022-add-readme
) and create a PR to merge. Not sure why I'm doing this, but I'm doing it... ¯\_(ツ)_/¯
Create draft posts in _drafts
directory. Use the following command to run jekyll
in "draft mode":
bundle exec jekyll serve --drafts
Posts should be created with the following front-matter:
---
layout: post
title: <title-goes-here>
category: <category-goes-here>
tags: <tags-go-here>
---
And here are the rough steps to go through to push the changes to the site.
-
Rename the draft with the format
YYYY-MM-DD-title.md
and move from_drafts
to_posts
. -
Commit to new branch and push changes.
-
Create and merge the PR.
-
???
-
Profit!
Github Action will trigger and redeploy the site, seems to take about 30 seconds.