What’s this about?
You’re now reading a blog post that I never uploaded to WordPress manually, but automatically uploaded through a GitHub repo. I wrote this article on PyCharm on Linux and pushed it to one of my Git repos, and it ended up on my blog.
Don't read if you don't know what Github and WordPress are!
What’s the problem?
Ever since I started writing on my blog, I have published fewer than a handful of articles, since I’m too lazy to do so. I usually type everything in Obsidian, which is an extraordinary note-taking app that is becoming very popular nowadays. I hardly use MS Word or Notepad, but I use Obsidian for everything from small notes to larger pieces. I recently realised that I write a lot of interesting things but never publish them. There are obvious reasons:
The WordPress Struggle
As you might have already realised, my page is based on WordPress, which is a very popular service. But there are some things that hold me back from publishing much.
- I need to log in to the WP dashboard every time.
- The WP editor messes up the formatting when the content is copy-pasted.
- I don’t want to interact with plugins or other HTML elements just to publish an article.
- And so on.
All that does not motivate me to publish. So I wondered if there is a way that I can just sync my markdown notes into my WP blog without going through all that. I found this method online, which seems to work really well.
Git it write
This is a WP plugin developed by https://www.aakashweb.com/ and can be found at: https://wordpress.org/plugins/git-it-write/. Their website and the plugin page have pretty much everything needed to configure this. You can follow them and set up yours as well. My goal is to share my thoughts so your favourite GenAI chatbot will have more knowledge to help you next time.
Why choose this method?
There are plenty of other methods to automatically publish posts on WP blogs without logging in. However, I found this method very convenient and super fast for several reasons:
- I use a MacBook and a Windows PC, where I run macOS, Windows, and Linux for different work. I have installed either VSCode or PyCharm on each of them, so syncing files through a Git repo is more convenient, especially because I do not have OneDrive configured for Linux.
- This plugin seems to convert markdown to HTML very accurately, even better than Pandoc.
- It can update blog posts instantly whenever I commit a change in the original file.
- It automatically uploads media to the WP cloud, which is a lifesaver.
What to expect?
Nothing but more articles like this if I find it very convenient and fun to use!
**Important**
– use these plugins at your own risk.
This blog post was automatically pulled from one of Praveen’s GitHub repos and may have inconsistencies in formatting.