In version 3.3 Jekyll gained support for two new filters: absolute_url and relative_url. Those filters take the site.url and site.baseurl settings into account to construct correct URLs based on given paths.
This pull request changes the code so that it uses the relative_url filter whenever applicable. This should fix issues with empty baseurls (as seen in #68) as well as issues with non-empty baseurls (like in this example post).
In version 3.3 Jekyll gained support for two new filters:
absolute_url
andrelative_url
. Those filters take thesite.url
andsite.baseurl
settings into account to construct correct URLs based on given paths.Here's a quick overview on how the filters work: https://jekyllrb.com/news/2016/10/06/jekyll-3-3-is-here/#2-relative_url-and-absolute_url-filters
This pull request changes the code so that it uses the
relative_url
filter whenever applicable. This should fix issues with emptybaseurl
s (as seen in #68) as well as issues with non-emptybaseurl
s (like in this example post).