Enforcing HTML best practices with 11ty, by using macros
.
├── _data
├── _includes
│ ├── components
│ ├── layouts
│ └── partials
└── content
- /components: based on Nunjuck macros and contain standard components such as buttons or cards
- /parials: parts used to construct the HTML document, only retrieve data globally available
- /layouts:
The base.layout.njk expose all the components and make it possible to reuse them inside any page extending it.