Skip to content
Custom per-page template: this note is added only to the template example.
Custom block override: this banner is added to every page in this variant.

Per-page custom template

The orange note above appears only on this page. Its front matter selects a custom template, which extends the shared override; the green banner remains visible too.

Front matter and template source
---
template: example.html
---
{% extends "main.html" %}
{% block content %}
  <div class="custom-template-note">Custom per-page template: this note is added only to the template example.</div>
  {{ super() }}
{% endblock %}

Return to the UI guide