Skip to content

nelioyann/enforcing-html-11ty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enforcing-html-best-practices

Enforcing HTML best practices with 11ty, by using macros

Files and folder

.
├── _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:

Attribution

Documentation

The base.layout.njk expose all the components and make it possible to reuse them inside any page extending it.

Components