{% load i18n cms_tags extra_tags thumbnail %} {% comment %}Obviously, the context template variable "blogpost" is required and must be a BlogPost page extension{% endcomment %} {% with blogpost_page=blogpost.extended_object blogpost_variant=blogpost_variant|default:"glimpse" %} {% if blogpost_variant == "favorite" %}
{% get_placeholder_plugins "cover" blogpost_page as plugins or %}
{% trans 'Cover' %}
{% endget_placeholder_plugins %} {% blockplugin plugins.0 %} {% endblockplugin %}
{{ blogpost_page.get_title }}

{% show_placeholder "excerpt" blogpost_page %}

{% trans 'Learn more' %}
{% elif blogpost_variant == "mini" %}
{{ blogpost_page.get_title }}
{% with category_variant="tag" has_link=False %}

{% trans "Categories" %}

{% show_placeholder "categories" blogpost_page %} {% endwith %}
{% else %}
{% comment %} sighted users see the date above the cover image, not announced to screen readers{% endcomment %} {% if blogpost_page.publication_date %} {% endif %}
{{ blogpost_page.get_title }} {% comment %}screen reader users get the date here, right after the title{% endcomment %} {% if blogpost_page.publication_date %}

{{ blogpost_page.publication_date|date:"DATE_FORMAT" }}

{% endif %}

{% trans "Categories" %}

{% with category_variant="tag" has_link=False %} {% show_placeholder "categories" blogpost_page %} {% endwith %}

{% show_placeholder "excerpt" blogpost_page %}

{% endif %} {% endwith %}