{% extends "puput/base.html" %} {% load static i18n wagtailcore_tags wagtailimages_tags puput_tags social_share %} {% block title %} {% if search_term %} {{ search_term }} | {{ blog_page.title }} {% else %} {{ block.super }} {% endif %} {% endblock title %} {% block social_share %} {% image blog_page.header_image fill-800x450 as share_image %} {% if blog_page.header_image %} {% endif %} {% endblock social_share %} {% block blog_content %}
{% with per_page=blog_page.num_entries_page %} {# 'paginate' tag cannot render dotted variables, so we need to create a context var #} {% paginate per_page entries %} {% if search_term %}
{{ search_term }}
{% endif %} {% for entry in entries %} {% entry_url entry blog_page as post_url %} {% if forloop.counter == 1 %} {% for category in entry.categories.all %} {% if search_term|slugify == category.name|slugify %}
{{ category.description }}
{% endif %} {% endfor %} {% endif %} {% if forloop.counter0|divisibleby:3 %}
{% endblock blog_content %}