..
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-hugo
plugin enabled -
These are the relevant lines to configure
ox-hugo
properly(after! ox-hugo (setq org-hugo-base-dir "~/code/wandersoncferreira.github.io" org-hugo-section "posts"))
-
I wrote an
org
file inside theorgfiles
folder -
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
filetags
and not onlytags
? The answer is waiting for you
- are you wondering why
-
Time to publish
spc m e
to runorg-export-dispatch
H
to export toox-hugo
- commit all the files
A clever github action will handle everything from here onwards!