# Obsidian Starter Kit - How-to guide - How to use the Publish template ## Introduction Version 2.1.0 of the starter kit has added a template for publishing notes. It is only useful if you use Obsidian Publish, and want to improve the user experience, and enable additional use cases in your vault. That template requires the [[Dataview Serializer plugin for Obsidian]], that was also added by version 2.1.0. I’ve created this to help me publish my own notes: https://notes.dsebastien.net/ ## What does it do? The Publish template: - Calls the API of the Obsidian Publish service to identified all the published notes. Then it locates those in your vault - Modifies all published notes to include a “public_note: true” property. This enables quickly identifying (and processing) published notes. In my own vault, I rely on this property to only include links to published notes in my maps of content. That’s why pages such as the following don’t include links to unpublished notes: https://notes.dsebastien.net/30+Areas/34+MOCs/PKM+\(MoC\) - Adds or updates the “created” and “updated” properties on all published notes. This enables rendering timestamps on your published notes, like I did here: https://notes.dsebastien.net/30+Areas/36+People/Jim+Morrison - Generate an up to date “Recently added” file under “50 Resources/56 Obsidian Publish” (which you should publish) - Generate an up to date “Recently modified” file under “50 Resources/56 Obsidian Publish” (which you should also publish) ## How to use it? To use this template, you need to have an active editor (i.e., an open note in which your cursor is currently located, doesn’t matter which one). Then, you need to: - Press CTRL/CMD+E to open the templates list - Select “TPL Publish” in the list ![[Obsidian Starter Kit - How-to guides - How to use the Publish template - publish tpl.png]] - The template will be executed, and will pre-process all files as described above, before opening the Obsidian Publish dialog **WARNING**: Given the way this template works, you MUST invoke it 2-3 times before the changes stabilize. The reason why is that if a note was not published before, but you decide to publish it once the dialog opens, then preprocessing your notes is “not possible” anymore. It’s technically possible, but not implemented for now. By re-invoking the template multiple times, you’ll give the opportunity to the template to update all your published notes, and to generate a complete changelog