dreverri / gollum-site

Static Site Generator for Gollum Wikis
254 stars 28 forks source link

Links don't use base_path #3

Closed vladdu closed 13 years ago

vladdu commented 13 years ago

Hi! Very nice idea with gollum-site!

The generated internal links don't seem to use the provided base_path option, they still get prepended a "/". This might be ok if used with "gollum-site serve", but I want to use the results independently.

The links for css and images and javascript are ok.

dreverri commented 13 years ago

Hi Vladdu,

Sorry for not getting back to you sooner. I'm not able to reproduce this issue. What version of gollum-site are you using? What is the base_path you are trying to set?

Thanks, Dan

vladdu commented 13 years ago

Hi! I was using version 0.0.6. The problem is that css and image links are generated with "$base_path" and page links with "$base_path/", meaning that to get relative paths one has to use base_path "./", which is not obvious. /Vlad

dreverri commented 13 years ago

The best solution for this issue is the one mentioned; use "./" for relative paths.