{% extends "enap_designsystem/base.html" %} {% load wagtailcore_tags wagtailimages_tags %} {% block content %}
{% if block.value.type == 'card-bgimage' %} {% if self.image %} {% image self.image fill-800x450 format-webp as card_bg_img %}
{% if self.title %}

{{ self.title }}

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

{{ self.title }}

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

{{ self.title }}

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