Blogging workflow
I’m still trying to figure out the best workflow for me, for now I’m using Emacs with Org mode, the package that generates the Markdown from the org files is called ox-hugo. I’m using the development version of Spacemacs and the installation was super easy. My configuration looks like this:
dotspacemacs-configuration-layers
'(
(org :variables
org-want-todo-bindings t
org-enable-hugo-support t)
)
All the posts (blogs entries) are in one file, as recommended by ox-hugo, each entry is a todo. The reason for that is that once the status changes to done, the date is recorded. This is quite handy to date the entries once you are done writing them.
For the hosting I’m using two repositories, the output which is basically the HTML part (that’s the public/ directory in the Hugo structure) and the rest in a separate repository.