{% load static %} {% block content %} {% load wagtailcore_tags wagtailimages_tags %}
{% if value.type == 'card-bgimage' %} {% if value.image %} {% image value.image fill-800x450 format-webp as card_bg_img %}
{% if value.title %}

{{ value.title|truncatechars:50 }}

{% endif %} {% if value.description %}
{{ value.description|richtext }}
{% endif %} {% if value.link %}
{% include_block value.link %}
{% endif %}
{% endif %} {% elif value.type == 'card-horizontal' %}
{% if value.image %} {% image value.image fill-800x450 format-webp preserve-svg as card_img %}
{% endif %}
{% if value.title %}

{{ value.title }}

{% endif %} {% if value.description %}
{{ value.description|richtext }}
{% endif %}
{% if value.link %}
{% include_block value.link %}
{% endif %}
{% elif value.type == 'card-horizontal-reverse' %}
{% if value.title %}

{{ value.title }}

{% endif %} {% if value.description %}
{{ value.description|richtext }}
{% endif %} {% if value.link %}
{% include_block value.link %}
{% endif %}
{% if value.image %} {% image value.image fill-800x450 format-webp preserve-svg as card_img %}
{% endif %}
{% else %} {% if value.image %} {% image value.image fill-800x450 format-webp preserve-svg as card_img %}
{% endif %}
{% if value.title %}

{{ value.title }}

{% endif %} {% if value.description %}
{{ value.description|richtext }}
{% endif %}
{% if value.link %} {% if value.type == 'card-secondary' %}
{% include_block value.link %}
{% elif value.type == 'card-terciary' %}
{% include_block value.link %}
{% else %}
{% include_block value.link %}
{% endif %} {% endif %} {% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}