Skip to content

Instantly share code, notes, and snippets.

@yowmamasita
Last active July 7, 2022 01:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yowmamasita/be82fae5206fa819096c69242497ab50 to your computer and use it in GitHub Desktop.
Save yowmamasita/be82fae5206fa819096c69242497ab50 to your computer and use it in GitHub Desktop.
Hello to yet another blog

Hello to yet another blog

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.

  1. A Profile Readme that will resemble a "homepage"
  2. GitHub CLI - I've only recently known this but this provides quite powerful utility.
  3. 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!

@yowmamasita
Copy link
Author

Another (+), there's OOTB dark mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment