{% load i18n %} {% comment %} Content related context: - object: object to display - cover: cover - title: title - subtitle: subtitle - content: content to display Styling related context: - is_active: add "active" css class - is_small: add "small" css class - is_tiny: add "tiny" css class - tag - tag_class: css class to set to main tag - tag_extra: extra tag attributes {% endcomment %} {% block outer %} <{{ tag|default:"article" }} class="preview {% if not cover %}no-cover {% endif %}{% if is_active %}active {% endif %}{% block tag-class %}{{ tag_class|default:"" }} {% endblock %}" {% block tag-extra %}{% endblock %}> {% block inner %} {% block headings-container %}
{% block headings %}
{% block title %}{{ title|default:"" }}{% endblock %}
{% block subtitle %}{{ subtitle|default:"" }}{% endblock %}
{% endblock %}
{% endblock %} {% block content-container %}
{% block content %} {% if content and with_content %} {% autoescape off %} {{ content|striptags|linebreaks }} {% endautoescape %} {% endif %} {% endblock %}
{% endblock %} {% block actions-container %}
{% block actions %}{% endblock %}
{% endblock %} {% endblock %} {% endblock %}