{% extends 'base.html' %} {% block title %}Content Blocks | Admin | {{ settings.site_name }}{% endblock %} {% block content %}

Manage Content

{{ content_blocks|length }} content block{{ 's' if content_blocks|length != 1 else '' }}
{% if content_blocks %}
{% for block in content_blocks %}
{{ block.title }}
{{ block.page }}
{{ block.block_key }}

{{ block.content|striptags|truncate(150) if block.content else 'No content yet' }}

{% endfor %}
{% else %}

No content blocks found

Create First Block
{% endif %}
How to Use

Content blocks can be displayed in templates using:

{{ "{{ get_content('page', 'identifier') }}" }}

Common identifiers:

  • hero_title - Page hero title
  • hero_subtitle - Page hero subtitle
  • intro - Introduction text
  • cta_text - Call to action text
  • sidebar - Sidebar content
{% endblock %} {% block extra_js %} {% endblock %}