Closed silveltman closed 1 year ago
Thanks for the report, can you include the exact syntax you're using in the file?
From the error, it looks like you may be doing {% favicon appleIconBgColor='blue' %}
if this is the case, two things to try:
favicons
(plural)like so:
{% favicons 'path/to/my/favicon.svg', appleIconBgColor='blue' %}
Below a syntax that gives the error given above:
{% favicons '/assets/img/uploads/favicon-32x32.png' appleIconBgColor='blue' %}
@silveltman please try adding a comma after the favicon, like so:
{% favicons '/assets/img/uploads/favicon-32x32.png', appleIconBgColor='blue' %}
I am going to close this, as it appears to be a syntax issue and has been stale for 5 months. Please reopen if you are still seeing issues which are not solved by using the correct syntax.
liquid wont take a named argument so to make it work with liquid we can use the rendertemplate https://www.11ty.dev/docs/plugins/render/
so something like this
{% renderTemplate "njk", variablewiththeiconpathinit %}
{% favicons icon, appleIconBgColor='red',appleIconPadding=10, generateManifest=false %}
{% endrenderTemplate %}
I'm unable to pass arguments in the shortcode. I'm using liquid, but also tried njk.
Error: