bugfix: avoid double-dashes (//) in links

When the base == '/' (i.e. your blog is hosted at the root of your page), then the current replacement for non-relative links leads to creating double-// links, e.g.: http://localhost:8080//articles/mine/image.jpeg. This will lead the browser to look into http://articles/mine/image.jpeg instead of http://localhost:8080/articles/mine/image.jpeg.

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
bugfix: remove tailing '/'-es from all base urls

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
Merge pull request #8 from arlimus/fix/double-dash-links

bugfix: avoid double `//` in links