redVi / voyager

Just another jekyll theme.
MIT License
45 stars 63 forks source link

Support relative URL #4

Closed yeshuanova closed 7 years ago

yeshuanova commented 7 years ago

Hi redVi

I am interesting your jekyll theme "voyager". But, origin layout setting can't support relative url.

For example, the blog page will occur error page if I use "blog" project and set web site link as "https://{username}.github.io/blog/".

Then I try to fix this problem. Now, the web site will run ok even if adding baseurl attribute. But, I have another problem, the images link in _config.yml file. I can't append base url to pre-link address automatically. So, I need add relative url filter at image link manually ( ex. "{{ site.images | relative_url }}.

If you have better solution, please let me know.

Thank you !

redVi commented 7 years ago

Thanks yeshuanova!

It looks good and will be merged. As for the images (and any assets): yes, we can use relative_url or change path to images in the _config.yml. I will update README for this information.