What are the practicalities of producing this blog? Let’s dive in.
I wanted something very streamlined and simple that would make writing and publishing blog posts as easy as possible - very low friction.
I use Hugo to construct this site from some cobbled together templates and markdown files.
I write all my posts on my phone cos I’m lazy.
This is all enabled by the Termux app, which I love to bits.
workflow
- open termux and type
cd path/to/my/blog hugo new 'Name of Post.md'- write a blog post using markdown by editing the file
content/Name of Post.mdthat hugo just made for me - I use vim, but appreciate that is not for everyone
aspell -c -x name/of/file(optional spell checking)hugo serve(optional, to render post to localhost if you want to see what it looks like)- don’t forget to mark
draft: falseat the top (I regularly do) - I type
upload - wait a few minutes
- the new post is live!
whats the upload command
well, you won’t have the upload command - but you can!
What it does is equivalent to typing:
cd blog/directory
hugo
git add .
git commit -m 'updating from phone'
git push
the first step is in case I forgot to do that.
the second builds the website.
the git ones push the changes to codeberg
you can make your own command to do this using a shell alias or script.
maybe that doesn’t sound very streamlined but it works really well and very quick and easy in practice :)