After I realized that some people are using GitHub gists to publish adhoc posts, I immediately jumped on the idea and executed on making $this
yet another blog. This time, it's freeloading not just on GitHub's hosting capabilities. I am also using the commenting system with GitHub identities and many other features. I think it's quite a good setup, and you only need 3 things to start.
- A Profile Readme that will resemble a "homepage"
- GitHub CLI - I've only recently known this but this provides quite powerful utility.
- The
blog
wrapper script. This script is only compatible with zsh (and maybe just macOS) right now.
To start a blog, just start with blog "$TITLE"
and it should open your $EDITOR
so you can start writing. After that, it will auto-publish (based on my opinionated copy) and make a backup of the blog you wrote. The wrapper script is fully optional. You can do all these without the thin magic that the script does.
My readme-slash-homepage only shows the latest blog post. Good thing you can edit gists if you need to. Bad thing is that you can't make them private if you change your mind.
Is it a good idea to host it in GitHub? It's likely Google will raise the search rank of gists if more people do this. If you're looking for exposure, the earlier you do this, the more you'd benefit. Exporting is straightforward. Making this as portable as possible will come soon. For now, we write!
Another (+), there's OOTB dark mode.