Closed deepfryed closed 6 years ago
@deepfryed This is to allow users to put Liquid in the YAML front matter where the redirect is defined?
@benbalter yes, it's to allow liquid tags in the YAML Jekyll header in files.
allow liquid tags in the YAML Jekyll header in files.
Does Jekyll do that anyplace else? Why is this a problem specific to this plugin? If not specific to this plugin, should it be implemented in Jekyll core (or another plugin)?
@gjtorikian do I recall you making a plugin to do just this?
I haven't used Jekyll much so didn't do much digging into it. This used to work in jekyll 3.0.3 / jekyll-redirect-from 0.10.0 and stopped working when I bumped the gems to 3.5.2 & 0.12.1 respectively.
@deepfryed Thanks for the PR and for taking the time to dig into the code. I believe https://github.com/gjtorikian/jekyll-conrefifier implements what you're looking for, and should work with this plugin. If not, I'd be glad to review a PR that ensures compatibility (rather than duplicating that logic here).
On the whole I agree but, devil's advocate, this is white-listed for GitHub Pages, which can be advantageous.
I vote to close this as wont-fix
Jekyll doesn’t parse Liquid in frant matter anywhere else; I don’t think this plugin should be a special case.
As @benbalter mentioned, if there is another plugin that does this, we could ensure compatibility 👍🏼
@pathawks Fair enough, as much as I'd like to see Jekyll parse Liquid in Front Matter, this does not seem like the right place to do it.
This change allows
to
urls to include liquid tags, this used to work in v0.10.0 I believe.