{% load i18n cms_tags extra_tags thumbnail %} {% comment %}Obviously, the context template variable "category" is required and must be a Category page extension{% endcomment %} {% with category_page=category.extended_object %} {% if variant == "tag" %} {% get_placeholder_plugins "icon" category_page as icon_plugins %} {% if icon_plugins %} {% blockplugin icon_plugins.0 %} {{ category_page.get_title }} {% endblockplugin %} {% else %} {{ category_page.get_title }} {% endif %} {% elif variant == "mark" %} {% get_placeholder_plugins "icon" category_page as icon_plugins %} {% blockplugin icon_plugins.0 %} {% endblockplugin %} {% else %} {% get_placeholder_plugins "logo" category_page as plugins or %} {% trans "Logo" %} {% endget_placeholder_plugins %} {% blockplugin plugins.0 %} {% endblockplugin %} {{ category_page.get_title }} {% endif %} {% endwith %}