This is a simple app to generate a Tumblr-style blog backed by a Git repo. It's what's powering http://davidmade.com. The site is automatically regenerated whenever I do a git push
.
This whole thing's done with Ruby and Rake. You'll need the Mustache, RDiscount, and Sass gems.
Run rake build
to generate the static HTML pages. To view your site, run rake server
, then head to http://localhost:8000 in your browser.
Any change you make to the content or site structure will require a new rake build
.
To deploy your site to a remote server, follow these instructions to set up a remote repo, then copy the included post-update-sample
to .git/hooks/post-update
(and chmod +x
it to make it executable). If you're interested, here's some more info about what's going on with this hook.
With that in place, your site will rebuild every time you do a git push
.
All design, code, and content is licensed under the Creative Commons Attribution License.
--
Thanks for checking out my code, and don't hesitate to drop me a line if you have any questions or suggestions for improvement.
David Eisinger