nigelwhite
nigelwhite
Thanks for this which looks like a really elegant solution. However, it's not working for me. I get ``` Twig\Error\SyntaxError: Unknown "modal_id" tag. in Twig\Parser->subparse() (line 1 of ....... ```...
I think we were missing a 'set'. When I use {% set modal_id = uuid() %} I get 'Twig\Error\SyntaxError: Unknown "uuid" function'. So the uuid function is not available in...
Ah, this works ... ``` id="{% spaceless %}{{modal_name|render|striptags|replace({' ': ''}) }}{% endspaceless %} ```
Yes, thanks. Could we put it in the documentation somewhere. Probably a common use case......
For anyone struggling with this, I found a way. Turns out that VScode has a language toggler in the bottom menu bar. You can toggle back and forth between different...
@TrentonAdams that's working for me, thanks. Now I need to refine it so the tagList collection only lists tags found within collections.page and not from collections.all. I've tried various things...
Thanks @TrentonAdams. Yes, that's what I thought too. So, in eleventy.js, I tried ```js eleventyConfig.addCollection('tagMenu', (collections) => { const tags = collections .getAll(collections.page) .reduce((tags, item) => tags.concat(item.data.tags), []) .filter((tag) =>...
Thanks @TrentonAdams and @pdehaan. Yes 'page' and 'post' are two tags that I've been adding in my markdown files. I wanted to use these as an 11ty-style way of having...