How I write my blog posts

#obsidian #blogging #website

So, Obsidian. It’s a really popular choice for many people, who either:

  1. Want to stop using Notion
  2. Want to make use of the countless plugins it has

And, I guess I’m the latter, as I never actually used Notion - it’s too big, and too “cumbersome” for me to use, instead, for personal use I prefer lightweight, yet customizable solutions - just like Obsidian is.

Why do I even need Obsidian?

Well, that’s a great question. And it comes from the fact that I, don’t spend a lot of time near my computer, yet, I have a lot of thoughts running around in my head, and so, I need something to write it in.

And yes, I treat my blog as a sort of public diary.

Nevertheless, I use Obsidian not only for blogging, but for actual diary - I have my poetry, and random thoughts written there.

How do I upload blog posts?

Well, that’s complicated a tad bit. For Obsidian on mobile I haven’t found a great solution for uploading posts to Git, so I upload them manually.

I just turn on source code view, and paste into the new file the title and source of it.

Template

Templates are such a great tool, with them I don’t have the need to constantly write the same things over and over again as when I did when I was writing the posts via Codebergs web UI.

So, here’s the template I’ve made for myself

---
<%*
let inputTitle = await tp.system.prompt("Enter Post Title");
let titleEdited = inputTitle.replace(/ /g, "_");
let date = tp.date.now("YYYY-MM-DD");
await tp.file.rename(`${date}-${titleEdited}`);
-%>
layout: post
title: <% title %>
date: <% date %>
tags:
---