{% load i18n cms_tags extra_tags thumbnail %}{% spaceless %} {% comment %}Obviously, the context template variable "category" is required and must be a Category page extension{% endcomment %} {% with category_page=category.extended_object category_variant=category_variant|default:"glimpse" %} {% if has_link or has_link|default_if_none:True %} {% else %} {% endif %} {% if category_variant == "badge" %} {% comment %}Small CTA alike, icon + title, commonly horizontal{% endcomment %} {% get_placeholder_plugins "icon" category_page as icon_plugins %} {% if icon_plugins %} {% blockplugin icon_plugins.0 %} {% endblockplugin %} {% endif %} {% trans "Category" %} {{ category_page.get_title }} {% elif category_variant == "tag" %} {% comment %}Small CTA alike, only title and no image, commonly horizontal{% endcomment %} {{ category_page.get_title }} {% else %} {% comment %}Larger look, logo + title, commonly vertical cell near to a vertical card, title is in a hX element{% endcomment %}
{{ category_page.get_title }}
{% endif %} {% if has_link or has_link|default_if_none:True %}
{% else %}{% endif %} {% endwith %} {% endspaceless %}