{% load coderedcms_tags %}
<div class="d-flex align-items-center">
  <h2 class="h4"><a href="{{page.url}}">{{page.title}}</a></h2>
  {% if page.content_type.model_class in pagetypes %}
  <small class="ms-3 badge badge-secondary">{{page|get_name_of_class}}</small>
  {% endif %}
</div>
{% if page.search_description %}
<p>{{page.search_description|safe}}</p>
{% elif page.body_preview %}
<p>{{page.body_preview}}</p>
{% endif %}
