Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 957 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 957 Bytes

Obsidian to Hugo

An Obsidian Plugin to export notes to Hugo.

Motivation

My website is built using Hugo, however I do the majority of my writing in Obsidian. I wanted a way to easily export content from Obsidian to Hugo, whilst keeping my writing flow elegant, and not having to manually deal with any of the Hugo quirks.

Usage

There is one setting for this plugin:

  • Hugo Directory

The Hugo Directory is where you'd like to generate the markdown files. This is likely to be your posts folder in the Hugo file structure.

The tool knows to export your content if your note begins with hugo frontmatter. For example:

This content will not be exported.
---
publishdate: 2022-12-20
---

This content *will* be exported.

You should **not** include a title as your hugo frontmatter as this is generated automatically from the Obsidian note title. Manually adding a title may cause issues with note linking.