Shorter shortcuts through Nunjucks macros in Eleventy | BryceWray.com
While seeking a way to cut a three-line call down to one line, I found some great advice on using a sometimes-overlooked aspect of a popular templating language.
How to use nunjucks macro inside markdown files ? · Issue #613 · 11ty/eleventy
Hi ! Question I would like to create a macro to embed images inside a <figure> with a <figcaption> tag. I'm trying to use nunjucks macro inside my markdown files but it doesn't ...
Using parameters in your eleventy includes with nunjucks macros - hello, yes. I'm Thomas Michael Semmler: CSS Developer, Designer & Developer from Vienna, Austria
Includes are great. But for actual reusability of code, parameters are always needed. Luckily, nunjucks makes this possible with macros!