How I Blog
I use Blot to blog. It makes the challenge of posting an article every day a breeze. It’s easier than manually using a static site generator.
It’s not a free service. As of today it’s $20USD/year. It’s worth it to me. Alternatively, you can use Jenkins with Github pages for free.
Or “installation”. Notice the quotes.
- Create a Blot account.
- Create a Dropbox account.
- Log in Dropbox from your Blot dashboard.
- Install Dropbox on your machine.
How To Use
Blot already created a folder in your Dropbox directory. You can start drag and dropping files into it. They will show up as posts on your blog. I write all my posts using markdown.
My Directory Structure
_Images --ryxbwxtvvs.png Posts -2018 --01 ---2018-01-01-my-first-post.md ---2018-01-02-my-second-post.md --02 ---... --03 ---... Drafts -this-is-just-a-draft.md Templates -xindex --...
The files contained in directories prepended with an underscore (such as
_Images) will not be turned into posts. This means the image
ryxbwxtvvs.png will not be turned into a post. I can embed this image in a post with the following markdown.
![My great image](_Images/ryxbwxtvvs.png)
To generate image names, I use Random.org.
When I first started out, I was putting all my files into a directory called
Posts. The number of files in this directory quickly grew to a point where Atom (my text editor) started to lag and crash. Now I’m using “years” directories containing “months” directories. Atom can now handle the load. Poor atom, it’s not easy being an electron app.
Nothing in this directory is turned into a public post. Every time I add or save a file in this directory, a private post is generated. I can open it in Firefox or Chrome.
I rarely use this feature because of what you will read in the
Delayed Posts section.
I have a custom theme for this blog. You can create one from your Blot dashboard. You can find my custom theme on Github.
I don’t actually write every day. I prepend my post filenames with the date I want it to become a public post. Blot handles this. I can still view the post without waiting for it to become public if I append
?scheduled=true to the post’s URL. As an example, I am writing this post on the 27th of February. Its filename is
2018-02-28-how-i-blog.md. It will become public tomorrow. If I want to view the post now, I need to go to http://o9s.xyz/how-i-blog?scheduled=true. If I go to http://o9s.xyz/how-i-blog, I get a 404 error.
To tag my posts the first line of every article is:
Tags: mytag, myothertag
This post is tagged #blot, therefore the first line of the markdown file is:
Posted on 2018-02-28 #blot