block

Description

Blocks are regions of content that you may want to override in children layouts. Their names are used to define the tabs in the backend and segment editable regions.

Nesting blocks is fine.

For more information about using the block tag, including nested blocks, check out the basics of templating guide.

Syntax

{% block <name> %}{% endblock %}

Examples

{% block sidebar %}
Sidebar goes here
{% endblock %}

{% block content %}
  Content goes here
{% endblock %}

{% block content/header %}
  Nested blocks can be updated directly
{% endblock %}
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top