Lei's Homepage

Back

To use Obsidian for writing blog more convenient, I’d like to introduce some techniques.

Plugins#

Git#

We can use git for better management on blogs.

Just install the plugin and open a git-managed vault, this plugin works.

Shortcut of the Git Plugin

Templater#

To create a file with properties easily, I choose the plugin Templater.

I wrote a template .md such that:

---
title: <% tp.file.folder().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ') %>
publishDate: <% tp.file.creation_date() %>
updatedDate: <% tp.file.last_modified_date() %>
description: A post about <% tp.file.folder().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ') %>
tags:
  - Draft
language: English
draft: true
---
markdown

So now the title and date will be generated automatically.

Settings#

Must change the settings of this:

File Path and Links

Obsidian Settings
https://leixy2004.github.io/blog/obsidian-settings
Author Xinyan Lei
Published at 2026年1月27日
Comment seems to stuck. Try to refresh?✨