{% extends "fluent_blogs/entry_contents_base.html" %} {% load i18n fluent_blogs_tags %}{% comment %} This is a base template for an item in the archive. It extends from a shared template so it can display the same content in both the archive and detail pages. However, this is not required. You can completely replace this template and leave the extends out. To shorten the contents in the archive, use: {% block entry-body-contents %}{{ object.html_content|truncatewords_html:100|safe }}{% endblock %} or provide an excerpt_text field in the model (e.g. via ExcerptTextEntryMixin). {% endcomment %} {% block entry-body %} {% if object.excerpt_text %} {% comment %} This code only exists to show something reasonable out of the box when you included the ExcerptTextEntryMixin or ExcerptImageEntryMixin. Feel free to completely redefine this template in your site {% endcomment %}
{% else %} {{ block.super }} {% endif %} {% endblock %} {% block entry-footer-contents %} {{ block.super }} {# Archive typically gives short summary, whereas the details page displays the full set of comments #} {% endblock %}