How I start Jekyll blog posts

I start every blog post by running a command which creates a new blog post file, like this:

$ blogpost 'How I start Jekyll blog posts'
$ cat _posts/
title: "How I start Jekyll blog posts"
tags: []

I find this very useful to jot down blog post ideas! Instead of keeping blog post ideas in some separate checklist, I keep the ideas directly in the posts directory. If they turn out fruitful, I’ll commit the file and publish it. Otherwise, the file sits around for a few months, and maybe gets deleted eventually. I can see all of my blog post ideas with git status.

The blogpost command takes the post title 'How I start Jekyll blog posts' and the current date 2018-12-30, and creates the file _posts/ Jekyll will take this file name and host it at the URL The blogpost command also lays out the Jekyll ‘front matter’. blogpost is an command in my .bashrc which looks like:

function blogpost {
  printf -- "---\ntitle: \"$1\"\ntags: []\n---\n\n" > "/Users/jim/dev/jameshfisher/$(date '+%Y-%m-%d')-$(echo $1 | tr '[:upper:] ' '[:lower:]-' | tr -cd "[:alnum:]-").md"
I just released Vidrio, a free app for macOS and Windows to make your screen-sharing awesomely holographic. Vidrio shows your webcam video on your screen, just like a mirror. Then you just share or record your screen with Zoom, QuickTime, or any other app. Vidrio makes your presentations effortlessly engaging, showing your gestures, gazes, and expressions. #1 on Product Hunt. Available for macOS and Windows.

With Vidrio

With generic competitor

More by Jim

Tagged #programming, #blog, #jekyll. All content copyright James Fisher 2018. This post is not associated with my employer. Found an error? Edit this page.