Press "Enter" to skip to content

Blogging Once More

Its Time to Blog Again!

I’ve been itching to do some blogging about various projects I’ve been working
on for both work and personal. In particular since I
had the honor of being invited to be part of the AWS Community
I need
to up my blogging game.

Joining the POSSE

One goal is to do it in the Publish (on your) Own Site, Syndicate Elsewhere
style. I.E. publish on my personal blog but
then have it (hopefully) automatically syndicated to other sites like
Medium,, Hashnode,
etc. I.e. Write Once, Publish Everywhere.

Markdown, Emacs and Github at the Source

And I want to write it in Markdown with Emacs and have the authoritative source
in Github. What more is there to say?

WordPress as the Personal Website

My personal website is based on WordPress running on AWS lightsail. I
have a love / hate relationship with WordPress. Its one of those technologies
that are powerful because so many people use it. And I have to help other folks
with their WordPress setups, so I want to keep my finger in it. I’ve tried the
various static sites and its been at least so far, worth keeping it there.

Unfortunately, WordPress is also the most painful to work with Markdown and have
content come from Github.

Git it Write makes it possible

I have found what looks like a good solution: Git it

It is a WordPress plugin that allows you to connect a github repo to your
Wordpress instance. It uses a webhook so that everytime you update a specified
branch of a github repo, it will push the markdown and images from the repo into
the WordPress as a Post, Page Ad, Reusable Block, or Attachment. It uses YAML
frontmatter in the markdown source to control some of the meta info for the

You organize the file hierarchy in the repo to match the Permalink hierarcy of
your website. In my case, my default permalink is a custom
/%category%/%postname%/ ![Permalink Settings](/_images/permalink-settings.png
"Permalink Settings"). And the file layout is like this:

├── _images
│   ├── permalink-settings.png
│   └── san-juan-mountains.jpg
└── posts
    ├── anti-ageing
    ├── blogging
    │   └──
    ├── how-the-world-works
    │   ├── creating_the_future_of_abundance
    │   └── demand_transformation
    ├── howto
    ├── macintosh
    ├── robotics-2
    ├── scalable-deployment
    ├── sysadmin
    ├── telecom
    └── uncategorized

Right now I only have the one article that you are reading now but I put in all the other categories I already had in
my blog from before as directories as placeholders.

Also notice the _images directory. Unfortunately, you have to put all the
images you use in any post in this one top level _images directory. So you
have to make the filenames unique across posts and its a shame in terms of
keeping things organized. But the good news is the plugin takes care of geting
the images into WordPress.

You refer to the image in our Markdown like:

![Permalink Settings](/_images/permalink-settings.png "Permalink Settings")

The setup of the plugin is pretty easy:

Git it write top level settings

Just click on the + Add a new repository to publish posts from and fill in the info about your repo:

Repo settings

You can set a subdirectory in the repo if you want to carve up things like
Posts, Pages, etc in the same repo.

NOTE: the _image_ directory is still at the top of the repo and shared across them all.

The documenation for Git it Write is at

In any case, it seems like a pretty nice solution for now to allow me to write
in markdown and make Git the authoritative source for posts. Which means I can
use the git repo to push to other sites like Medium and My experiences
attempting that will hopefully be in a future post.

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.