Liquefied link tag#6269
Conversation
e5b33b7 to
b4239e2
Compare
|
Some feedback on this, I think this could be confusing and might not be the best choice for implementation. The use-case here (please correct me if I'm wrong) is to enable linking to dynamic files. Currently, This implementation re-uses liquid templating, nested within the process of templating another file, in a way which I think could get confusing and be a maintenance burden in the future. I'd suggest that instead of templating the data passed to This re-uses existing functionality in the templating system to achieve the string building, rather than introducing another layer of templating, and I think this will be simpler to document and maintain. I'd be interested to hear what you and the maintainers think of these different solutions, and let me know if you want to do this, otherwise I might open a PR with an implementation. |
|
This implementation is based on #6261, which itself uses the same approach as |
b4239e2 to
3c26c80
Compare
|
@danpalmer updated |
|
@alexey-pelykh Could you document a use case for this? Thanks. |
|
@DirtyF sure, to which page that should go? |
|
@DirtyF done |
|
Is this a duplicate of #6261? Seems like one or the other should be closed. |
|
@alexey-pelykh Are you saying that should be closed in favor of this? |
|
Could somebody from @jekyll/windows kick AppVeyor? It seems to have choked. Otherwise this LGTM 👍 |
AppVeyor builds cannot be restarted.. The best solution here is pushing the |
|
Thanks for all the work you put into this. Sorry it took so long to get this merged, but this will be a great feature in Jekyll 4.0 👍🍻 @jekyllbot: |
This would allow to use
{% assign path = 'some/variable/path' %}
{% assign ext = 'md' %}
{% link {{path}}.{{ext}} %}
in addition to
{% link some/hardcoded/path.md %}