Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A carefully crafted Org exporter back-end for Hugo

A quick and easy way to generate markup for mailto links without having to worry about the annoying formatting.
ox-hugo is an Org-mode export backend that converts Org files and subtrees into Hugo-compatible Markdown with auto-generated TOML or YAML front-matter, built by Kaushal Modi as a free GPL v3 package for GNU Emacs.
ox-hugo is an exporter backend for GNU Emacs Org mode that converts Org content into Markdown formatted for Hugo's Blackfriday renderer, and generates the Hugo front-matter in TOML or YAML. It takes Org files or Org subtrees as input and outputs Markdown files with front-matter ready to place in a Hugo site's content directory. The package requires GNU Emacs 26.3 or newer and Org Mode 9.0 or newer, and is distributed through Melpa.
ox-hugo is for Emacs users who write in Org mode and publish with the Hugo static site generator. It suits bloggers who want to keep all posts in one Org file, technical writers generating documentation from Org, and developers who prefer controlling Hugo front-matter through Org properties instead of editing Markdown manually.
ox-hugo extends the ox-blackfriday.el backend, which performs the Markdown content generation, while ox-hugo adds the front-matter. When an export binding is invoked, it reads Org properties such as HUGO_BASE_DIR and HUGO_SECTION to determine the destination directory, then exports either the subtree at point (if it has EXPORT_FILE_NAME) or the whole file, writing the resulting Markdown with front-matter into the Hugo content directory.
Yes, ox-hugo is free software released under the GNU GPL v3 license.
ox-hugo requires GNU Emacs version 26.3 or newer and Org Mode version 9.0 or newer. It is recommended to install it from Melpa (not Melpa Stable).
Install the ox-hugo package from Melpa, then require it after ox is loaded using (with-eval-after-load 'ox (require 'ox-hugo)). With use-package, add the snippet shown in the repository README to your configuration.
Yes. The preferred workflow exports Org subtrees that have the EXPORT_FILE_NAME property, and the alternative workflow exports a whole Org file when no such subtree is present. Both are accessible from the Org Export Dispatcher with the H prefix.
