fongandrew / hydeout

A refreshed version of Hyde for Jekyll 3.x and 4.x
https://fongandrew.github.io/hydeout/
Other
594 stars 772 forks source link

Use relative_url Liquid filter #78

Closed Ditti4 closed 5 years ago

Ditti4 commented 5 years ago

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.

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 empty baseurls (as seen in #68) as well as issues with non-empty baseurls (like in this example post).

fongandrew commented 5 years ago

This is great. Thank you!