oscarmlage oscarmlage

Single: Default

Today I’ve built a new template for Obsidian Templater that allows the microposts creation inside Hugo running a simple command:

let qcFileName = await tp.system.prompt("Note Title")
titleName = tp.date.now("YYYYMMDD-HHmm-") + qcFileName
await tp.file.rename (titleName)
await tp.file.move("/microposts/" + titleName + "/index");
title: <% qcFileName %>
date: <% tp.file.creation_date("YYYY-MM-DD HH:mm:ss") %>
draft: false
tags: micropost

I’m really starting to love this kind of things. #obsidian #TIL