This is the repository for my blog, http://blog.postpunkjustin.com.
I've put in some effort to make Codespaces the preferred way to work on this.
At the moment, new Codespaces start with a mostly blank slate and I haven't set up prebuilt images yet, so creating a new Codespace takes something like 10+ minutes. Once that's done:
- Get a terminal in the Codespace via VS Code (
gh cs code
). If you usegh cs ssh
, you won't get automatic port forwarding so the blog preview won't work. - Run
script/watch
to start the server in preview/developer mode.
To create a new post, run ./script/new-post <title>
. That script will create a new file in the posts directory with an appropriate name, prefixed with today's date. The script is a little rough, so don't feed it weird things like :
in the post title.
The deploy process is automated. Run script/deploy
and it should make a new commit to the gh-pages branch with the changed content.