A plugin for versioned posts in Metalsmith

January 12, 2015 | |Source Code

I just moved this site from Jekyll over to Metalsmith since I work primarily in Node and Javascript and don't know a lick of Ruby. Which means, sadly, think I had to leave behind Jeremy Singer-Vine's peerless Gekyll plugin for tracking versions of posts using Git.

To bridge the void, I wrote a metalsmith plugin to do more or less the same thing. At this point in only stores dates and commit messages for versions, but I hope to get it up-to-speed supporting blobs and diffs soon. Better documentation on the way, but you can check out the code here or install it directly:

npm install metalsmith-versioned-posts

Questions, issues and pull requests welcome.