I trying to use a universal shortcode with liquid templates but get this error:
Problem writing Eleventy templates: (full stack in DEBUG output)
> Having trouble rendering liquid (and markdown) template ./content/anmalan.md (TemplateContentRenderError)
> cannot eval '"Zach' as value, line:4 (RenderError)
> cannot eval '"Zach' as value (TypeError)
Copied 2 items and Processed 0 files in 0.05 seconds
I try to get it working using the example in the docs find here: https://www.11ty.io/docs/languages/liquid/#shortcodes
Using this in my md-file fails with the above error message:
{% user "Zach Leatherman" "zachleat" %}
Using this in my md-file renders without errors:
{% user "ZachLeatherman" "zachleat" %}
Looks like you can't have space in your shortcode variable.
I'm using Eleventy v0.6.0.
Hmm, wow this is not good鈥攕orry about that. (confirmed locally)
Work for this is complete and this will be included with the upcoming 0.7.0 release. Thanks for the report!
You鈥檙e welcome. Thanks for sharing such a great SSG.
Most helpful comment
Work for this is complete and this will be included with the upcoming 0.7.0 release. Thanks for the report!