Thanks for this guide. I've found it really useful. I came across a couple of small errors in the shortcodes section.
- The updated src/index.njk example text is missing a quotation mark in the footer include
- The suggested addShortCode function is also missing a closing quotation mark and has some superfluous angle brackets>
eleventyConfig.addShortcode("shorttest", function(subtitle, greeting){
return "<h2><em>"+subtitle+"></em>, "+greeting+"></h2>
});
I would imagine it would be better to use a template literal as in the 11ty guide.
Thanks for this guide. I've found it really useful. I came across a couple of small errors in the shortcodes section.
I would imagine it would be better to use a template literal as in the 11ty guide.