Shared content
Put reusable navigation, footers, and announcements in fragments/. Include them from your layout.
{% include "nav.html" %}
<main>{{ content }}</main>
{% include "footer.html" %}Build-time composition
Fragments are expanded into production HTML. There is no runtime fetch and no extra network request for shared navigation.
Keep fragments focused
Use blocks for behavior and fragments for repeated content. Fragment paths remain inside the project fragment directory; recursive include cycles are rejected.