Skip to content

Publishing to a blog

Static site generators, such as Hugo and Jekyll, build a blog from a folder of Markdown files, each starting with front matter: a few lines of title, date, tags, and so on. Typing that on every post gets in the way of writing.

Instead, set up a folder or desk for publishing once. Every page inside it is a post. You write; the front matter is added when you export.

  1. Right-click the folder or desk that holds your posts, and choose Folder Settings… (or Desk Settings…).
  2. Under Blog publishing, choose to set it up.
  3. Choose your Site generator: Hugo, Jekyll, Astro, Eleventy, Zola, or Custom.
  4. Click Save.

Choosing a generator fills in the usual front matter for it. You can change everything:

  • Fields: the front matter keys, such as title, date, and tags. Each has a type (text, date, list, yes / no, or number) and a source:

    Source Where the value comes from
    Page title The page’s name, kept up to date
    Slug from title The page’s name, made into a URL-friendly slug
    First paragraph A suggested excerpt from the page’s opening, which you confirm
    First export date The day you first export the post, then kept
    Export date The day of each export
    Ask me Whatever you fill in for each post

    Fields can be marked required, and reordered.

  • Output: YAML (---), TOML (+++), or JSON front matter, and the file name, built from {slug}, {date}, and {title}. Jekyll, for instance, uses {date}-{slug}.md.

  • Publish folder: on a computer, the folder in your site’s source where posts should be saved.

Turn off removes the setup. Your pages stay as they are.

Each post has its own details: tags, a description, a draft switch, whatever fields you set up. Open them from the page’s settings, under Post details.

Fields filled in automatically say where their value comes from. Type over one to set it yourself; Use automatic goes back.

If you’d rather type the front matter at the top of the page yourself, you can. Fields typed on the page win, and show as Typed on the page.

  • Export the page to Markdown (Ctrl 1), and it’s saved as a finished post, front matter and all, under the right file name.
  • Or choose Publish to Blog Folder from the File menu, and the post is written straight into the publish folder. This is in the desktop app only.

The first time you export a post, and whenever a required field is empty, Post details opens first so you can check them.

If you rename a post and publish it again, the file under the old name is left in place, so you can decide what to do with it.

The front matter never appears in your page, and isn’t part of other exports.