Preset Conventions
This section covers the conventions you follow when writing a site with @tuqulore-inc/eleventy-preset. It stays on the "how you write" side; the implementation behind each convention is covered in Plugins.
What is covered
- Directory & naming:
src/,dist/,_data/,_includes/,public/, plus the.mdx/.jsx/.client.jsxnaming rules and how static assets and image optimization are handled. - Templates: YAML frontmatter, the
layoutproperty, and how layout chaining is composed. - Data Access: the
eleventysingleton for reading site / nav / page / title / content.
Elsewhere
- API of
preset()itself (the extend callback, what is included) lives in the@tuqulore-inc/eleventy-presetREADME. - The reasoning behind these conventions is in Architecture.