Jekyll Link URL Filter is a ruby gem for Jekyll static site generator.
This adds a link_url
filter which acts like the link tag, except it works with variables.
Add this line to your Gemfile:
group :jekyll_plugins do
gem "jekyll-link-url-filter"
end
And then execute:
$ bundle
Alternatively install the gem yourself as:
$ gem install jekyll-link-url-filter
and put this in your _config.yml
plugins:
- jekyll-link-url-filter
Use it like any other filter.
Examples:
{{ this_is_a_variable_path | link }}
{{ /about/ | link }}