Hugo Publisher: a desktop app to write, preview and publish your Hugo site

Hi all,

I’ve been building Hugo Publisher, a free, open-source (MIT) desktop app for people who want to run a Hugo site without living in a terminal. The first release (0.1.0) is out for Windows, macOS and Linux.


What it does

  • Writing: a Markdown editor with live formatting, Hugo shortcodes as small forms, a front matter form (YAML and TOML), image paste with metadata stripping, and spellcheck.
  • Preview: a live preview with your own theme, rendered by hugo server, that follows the page you’re editing.
  • Settings: hugo.toml (or config/) and your theme’s params as forms. Comments and formatting are kept, and every change is shown as a diff and checked with hugo before it is written.
  • Publishing: git commit, pull and push from the app, plus pre-publish checks: links, empty descriptions, privacy (EXIF/GPS, git identity) and what will change.

How it differs from a plain Markdown editor: it works on the whole Hugo site, not only on the .md files. It reads your config and theme and runs your real hugo, so what you see is what your site will build. Your files stay the source of truth: there’s no database, and you can keep using your usual editor next to it.

Status: this is an early release. Windows is where I develop and test daily. The macOS and Linux builds pass CI but haven’t been tried much on real machines yet, so reports from those platforms would help a lot. The builds are not code-signed; the README explains how to open them and how to verify the downloads.

I’d love to hear what works, what breaks with your site or theme, and what’s missing.

This looks like a useful tool for Hugo users who want a simpler way to manage sites without relying on the terminal for everything. The live preview and pre-publish checks sound especially helpful.

Nice to see that you offer an AppImage option. I use 4 different Linux distros as daily drivers, so an AppImage allows me to use one app on all 4 distros.

Will the app work if you don’t use Git? Any future plans to offer the ability to use Git alternatives? I’m thinking about using BitBucket.

Okay, I took the app (AppImage) for a nice spin using EndeavourOS, an Arch Linux derivative. I’m using the Shodo theme. My thoughts follow.

===== Likes =====

Overall, I’m very impressed. An excellent start on what could become an excellent app.

  • Post preview
  • Post checks
  • Ability to display front matter in Form or Source mode
  • Ability to filter content by top-level pages, pages, and posts
  • All of the information provided; e.g. overview, Hugo version, site health, theme, site settings, media, categories & tags. Outstanding!
  • App worked without a GitHub account.

===== Dislikes =====

  • When editing post and page markdown files, I felt like I was using a word processor. Not sure if using dark mode would change that; see my suggestions.
  • The area provided to edit front matter in Source mode is too small.
  • Image fields in front matter Source mode are too small.
  • Only being able to open one site at a time; see my suggestions.

===== Issues =====

  • My posts containing images stored under assets/images didn’t display in post preview.
  • None of my menus were displayed under Pages & menus. Only the top-level pages were displayed.
  • I ran the app from the command line. Doing so showed the following error four times on separate lines, although the app ran fine: Failed to load module “canberra-gtk-module”.

===== Suggestions =====

  • Provide the option to enable dark mode. All of the white is bit glaring to my eyes.
  • Provide the ability to open more than one site at a time. Having to go back to the start page to open each site separately is cumbersome.
  • Provide option to remember window size when Hugo Publisher closes. I had to maximize the app every time I opened it.