templating

97 bookmarks
Newest
Use an Eleventy filter as an `if` statement
Use an Eleventy filter as an `if` statement
If you find yourself writing the same `if` statement multiple times, add it to `.eleventy.js` as a filter and keep a single source of truth
·michaelheap.com·
Use an Eleventy filter as an `if` statement
Create a collection - 11ty Recipes
Create a collection - 11ty Recipes
11ty.recipes helps you build an Eleventy site from scratch, showing you how to add individual features to craft the exact site you need.
·11ty.recipes·
Create a collection - 11ty Recipes
Includes and Macros
Includes and Macros
Comparing techniques for encapsulating HTML components in Nunjucks or Jinja2.
·darthmall.net·
Includes and Macros
How to generate ID attributes in headings using Eleventy
How to generate ID attributes in headings using Eleventy
When switching from Jekyll to Eleventy, I discovered that my headings no longer had id attributes in the rendered HTML. This meant that I couldn’t link directly to headings in my (sometimes very...
·humanwhocodes.com·
How to generate ID attributes in headings using Eleventy
How to show your template code in 11ty blog posts
How to show your template code in 11ty blog posts
If you write a technical blog and use 11ty as your static site generator of choice you might run into a conundrum: How do you show Liquid or Nunjucks template code in your code blocks.
·bryanlrobinson.com·
How to show your template code in 11ty blog posts
Using parameters in your eleventy includes with nunjucks macros - hello, yes. I'm Thomas Michael Semmler: CSS Developer, Designer & Developer from Vienna, Austria
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!
·helloyes.dev·
Using parameters in your eleventy includes with nunjucks macros - hello, yes. I'm Thomas Michael Semmler: CSS Developer, Designer & Developer from Vienna, Austria
A blogsite template using @11ty
A blogsite template using @11ty
I was reading an article on Serverless, this lead me to few terms/technologies/concepts that I wasn't...
·dev.to·
A blogsite template using @11ty