Automating-Blog-Updates

I’ve streamlined my blogging process using Obsidian, Git, and Astro, all running on my Raspberry Pi. Automating blog posts using Obsidian

Setup

  1. Created a bare Git repo on my Raspberry Pi for storing blog posts.
  2. Cloned it locally and added a Git plugin to Obsidian for easy integration.

Automation

I added a post-receive hook to the Git repo, which automatically:

  • Moves images into the right directory.
  • Formats image links for Astro.
  • Converts Markdown files into Astro-compatible posts.

The Result

Now, I can simply add new Markdown posts to Obsidian, push them to Git, and my website updates automatically.

This project was inspired by NetworkChuck, who started using Obsidian for his blog in combination with Hugo. While I was inspired by his approach, I wanted to challenge myself by adapting it to the tools I was already using: Obsidian for note-taking and Astro for my website. Instead of switching to Hugo, I decided to make it work with the existing setup I had, and it turned out to be a rewarding challenge.