Posts go in one folder, static assets in another, templates in a third. Posts read YAML info from posts, pull templates as appropriate. Rebuild happens as post-receive hook.
This Tumblr web interface sure is nice, though.