💡 Erkenntnis

Notes on computational science and software by Mustafa Bhotvawala.


publishing-an-obsidian-based-blog

11.03.2026

Publishing an Obsidian-based blog

I’ve been trying new ways to improve all my old workflows. One of them was notetaking - and I can probably speak about Obsidian at length in another post. My objective now was to keep everything within Obsidian but publish with Hugo, so I put in a VSCode task that copies over my Obsidian blog folder into the Hugo content tree. My notes stay in one place, and Hugo can build directly from the same markdown files. Maybe I could be doing a better solution with that.

Note that, Hugo expects a little weird-ish frontmatter date:

date: 2020-06-27T10:00:00+00:00

I also use a Templater script so each new post gets Hugo-compatible frontmatter and then moves to Personal/Blog.

---
title: "<% tp.file.title %>"
date: <% moment.utc().format("YYYY-MM-DDTHH:mm:ss+00:00") %>
draft: true
tags: []
categories: []
description: ""
---

<%*
const file = app.workspace.getActiveFile();
const targetPath = `Personal/Blog/${file.basename}.md`;
await app.fileManager.renameFile(file, targetPath);
%>