Creating an Obsidian Plugin to Publish a Blog #94
nduartech
announced in
Blog Posts
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
slug: obsidian-github-discussions
description: Using Github Discussions Blog Loader in conjunction with some creative code
published: 2024-12-22
Following the release of Astro 5, I began rethinking my website. Yes, Astro was capable of hosting multiple frameworks as micro-frontends, and my site served as a valuable proof-of-concept, but I felt that despite its technical complexity, the overall look and feel could still use some polish.
At first I wanted to keep using Qwik. I really did. In fact, one day I hope to return to using Qwik again, if I get around to developing my own design system. But for now, I have selected to unify my site under an Astro+Svelte combination, using shadcn-svelte for the base components, still retaining most of the functionality I had previously while opting for a cleaner aesthetic.
The release of Deno 2 offered yet another opportunity to try something new, so I threw that in as well in lieu of Bun for now. (While it was interesting to see how Deno’s performance has improved since 1.0, and I did enjoy using it, I also enjoyed Bun quite a bit and will probably switch back at some point.)
But the facelift would not have been complete without the reworking of my blog via this Astro content loader which made it supremely easy to sync my Github Discussion posts with articles. (Both articles linked in the repository were a great help, would recommend giving them a read through.)
Simultaneously, I have been personally trying to pick up using Obsidian to regularly document and categorize my notes and writing. In fact, I originally wrote the articles for Chiron in Obsidian, and then copied them over to my repository when I was ready to publish them. As such, after “completing” this latest iteration on my website, I started to think about how this process could be tied together with Obsidian.
With this in mind, I created a tiny plugin to handle syncing blog content between Obsidian and Github Discussions..
The plugin adds two buttons to the left side ribbon. The up arrow allows uploading files from a configured directory as posts to Github Discussions. The down arrow downloads posts as files to said directory.
While this flow doesn’t handle images–those will still have to be manually added to each post in Github, it does make the pipeline of writing→publishing a tad easier.
Beta Was this translation helpful? Give feedback.
All reactions