Problem: Images not handled correctly

Solution

  • Turn off “Use Wikilinks” in Obsidian Settings->Files & Links.
  • Create a folder public/static/ in your vault and set Obsidian to use this this as “Default location for new attachments” in Obsidian Settings->Files & Links

Problem: Hugo shortcodes with Obsidian-Export

Hugo supports “shortcodes” to - for example - add Twitter and YouTube embeds.

The problem is that obsidian-export, which uses the Rust library pulldown-cmark under the hood, escapes the angle brackets, turning this:

{{< tweet user=“SanDiegoZoo” id=“1453110110599868418” >}}

Into this:

{{\< tweet user=“SanDiegoZoo” id=“1453110110599868418” \>}}

“Solution”

Turns out I don’t need to use obsidian-export (which transforms Obsidian Markdown to Commonmark) at all, I can just copy over the obsidian markdown and use as-is in Hugo.

Hugo YAML Frontmatter dates

https://yaml.org/type/timestamp.html