I don't use this procedure any more, since I've migrated my blog to haunt. For more current info check out this post.
bendersteed, Dec 2019
Hello World! After the trivialities let me share some info of how this blog is run. You can study the source in gitlab that is also used for hosting the blog.
The main infrastructure here is the hugo static site generator, org-mode for editing the posts, ox-hugo for exporting the org file in hugo-compatible markdown files and the after-dark theme for basic design on which I intend to build a more personal style.
Installing Hugo on Fedora
So now let's install ox-hugo in emacs, from MELPA, using ox-hugo:
(use-package ox-hugo :ensure t :after ox :config (use-package ox-hugo-auto-export))
The ox-hugo-auto-export package includes some nice features to auto-export your posts when you save your org file!
Basic blog config
Now that we have a working version of hugo and ox-hugo all that we are missing is a theme. After-dark is really nice and it has a simple script that initializes a hugo site and install the theme in the folder. It can be found here, but make sure to check the script you are running on your machine.
Now that we have most things ready to launch, we can fiddle with the config.toml file created from the after-dark script to suit our needs.
So in reality all the previous steps are pretty trivial. I decide to document them just for anyone wanting to get a fast working setup. The interesting thing is that this configuration offers an amazing blogging procedure.
The ox-hugo package leverages all the org-mode capabilities so you can create a post using stuff like TODO states, tag inheritance and org-capture.
Looking into ox-hugo documentation gives some great insight on using org to author your posts. I decided to organize my blog by having a single blog.org file. This allows me to have some TODO headings that will be exported as drafts but will then be published when I mark them DONE, even getting as publish date the time the state changed. I find this so simple yet so clever!
Another great example of how clever the ox-hugo package is, is the fact that by setting the org-hugo-auto-export-on-save variable to true, and having loaded the package I mentioned before, the markdown files get auto-exported every-time I save my blog.org file.
You can add properties like toc: t to get a Table of Contents for your posts and so many other good stuff.
For now I'm pretty happy with this configuration, and think it's quite a step up from my previous jekyll work-flow. Going on I would like to implement some more niceties but let's leave these for another post.