{% load wagtailcore_tags wagtailimages_tags %}
<div class="card mb-3 {{ miniview_css_class }}">
  {% if page.cover_image %}
  {% image page.cover_image fill-800x450 format-webp preserve-svg as card_img %}
  <a href="{% pageurl page %}" title="{{ page.title }}">
    <img class="card-img-top w-100" src="{{ card_img.url }}" alt="{{ card_img.title }}">
  </a>
  {% endif %}
  <div class="card-body">
    <{{ h|default:"h3" }} class="h5 card-title">
      <a href="{% pageurl page %}">{{ page.title }}</a>
    </{{ h|default:"h3" }}>
    <p class="card-text">{{ page.body_preview }}</p>
  </div>
</div>
