Site footer
Shared public-site footer landmark with content and legal slots.
Try it
Footer slots
Footer with legal text.
Use it
Working invocation
This code creates the configuration shown above. Copy the template and the required Python context together.
{% extends "brickwork/components/_site_footer.html" %}
{% block site_footer %}<nav aria-label="Footer"><a href="/privacy/">Privacy</a></nav>{% endblock %}
{% block footer_legal %}<small>© 2026 Example</small>{% endblock %}
context = {}
Guide
Add it to your project
- Extend the template to fill `site_footer` and `footer_legal`.
- For an include-only shell seam, include this file from the appropriate outer region.
Options
Public API
Named blocks
Fill these only when you extend the component template. They are not values passed to an include or tag.
| Block | What it replaces |
|---|---|
| site_footer | Footer link groups and site information. Constraint: Markup-only extension seam; passing a context variable with this name is ignored. |
| footer_legal | Fine-print or legal content below footer groups. Constraint: Markup-only extension seam; passing a context variable with this name is ignored. |
Behaviour
Accessibility and responsive behaviour
- Accessibility
- It is a footer landmark; callers supply meaningful link grouping.
- Responsive
- Uses shell measure and gutter without its own switch.
- Without JavaScript
- Static footer.
Need help?
Troubleshooting
Contract check: Django {% include %} cannot expose named blocks to a parent that extends
Extend the footer to fill `site_footer` and `footer_legal`; including it renders only default block content.