A random collection of stuff that I want online.
Home7 October 2009 10:28am. permalink
For my new blog, I'm thinking about managing my blog entries using git. Specifically, I will set up a repository that contains a number of markdown files, one for each blog entry. To create new blog entries, I will add markdown files to my local copy, and once I am ready to publish the entry, I can call:
> git push prod
Rather than hard-coding dates into the file content, I will extract them from the git log and filesystem information. This will let me automatically post updates to blog entries simply by committing a change to the file.
It's not clear to me whether I need a separate repository for my site code and my site content. At this stage, I will try a unified approach, and I will only change it if I see the need.
So far, I've set my blog up in this manner, but haven't made any git integration. The dates you see are file modification dates.