{% extends "common/content_page.html" %}
{% load wagtail_cache %}
{% block post_content %}
{{ block.super }}
{% if not request.is_preview %}
{% wagtailpagecache FRAGMENT_CACHE_TTL "similar-content" %}
Similar content
View all →
{% for page in page.get_similar_posts %}
{% block listing_item %}
{% include "common/listing-item.html" %}
{% endblock %}
{% endfor %}
{% endwagtailpagecache %}
{% endif %}
{% endblock %}