jrburke/delposto — pull request #3 by revin (2012-10-24 02:58:34+00:00)
Title: Fix stored URL paths for published posts in 'path'-URL-type blogs

I'm making more progress on my own flavor of delposto, and I discovered that I left a bug in the last pull request. As submitted, when the `postUrlType` is `path`, we end up with a leading slash when publishing posts in the site root (nested post paths are unaffected), and this ends up creating incorrect template output. The fix is a simple one-liner, to simply avoid appending a slash onto the computed path if the post's base directory is `''`.