how do i blog
This is a meta post in order to teach myself from the future how to do it!
I often spend a few weeks without the desire to write anything in my blog (I
should fix that but let’s be real first), but at some moment I do want to type
some letters down.. but they I freeze.. how do I do it?
These are the steps I used to write this blog post starting from complete scratch:
-
I use hugo.
-
These are the relevant commands run using Hugo
hugo new site wandersoncferreira hugo new posts/first.md cd themes/ git submodule add git@github.com:wandersoncferreira/hugo-theme-nostyleplease.git -
I use Emacs
-
My Emacs has a
ox-hugoplugin enabled -
These are the relevant lines to configure
ox-hugoproperly(after! ox-hugo (setq org-hugo-base-dir "~/code/wandersoncferreira.github.io" org-hugo-section "posts")) -
I wrote an
orgfile inside theorgfilesfolder -
I had to add some special meta information in the header of the file:
#+title:#+date:created usingM-x org-time-stamp#+draft:true or false- [OPTIONAL]
#+author: - [OPTIONAL]
#+filetags:- are you wondering why
filetagsand not onlytags? The answer is waiting for you
- are you wondering why
-
Time to publish
spc m eto runorg-export-dispatchHto export toox-hugo- commit all the files
A clever github action will handle everything from here onwards!