Dan's Brain

Hugo

tool

To blog with plain text

Emacs

Integrated with Emacs by ox-hugo

(use-package ox-hugo
  :ensure t            ;Auto-install the package from Melpa
  :after ox)

Root directory of the source for the Hugo site:

  • HUGO_BASE_DIR
  • #+hugo_base_dir: keyword in org file

Markdown Processors

  • Blackfriday (default)
  • Mmark

LaTeX

Support for LaTeX math equations is added by rendering engine:

  • KaTeX
  • MathJax

Partials

Support is added by creating partials inside layouts/partials/ Partials are activated with:

---
katex: true
markup: "mmark"
---

Installation and Usage

cd quickstart
git init
git submodule add https://github.com/theNewDynamic/gohugo-theme.git
  • Starting the server
  • Build static pages
    • hugo -D
    • in ./public/ directory by default

Resources

The best resource I could find by far is the work of Jethro Kuan on

Links to this note