diff --git a/website/blog/templates/blog/blog_post_page.html b/website/blog/templates/blog/blog_post_page.html index be9a782..b960eb9 100644 --- a/website/blog/templates/blog/blog_post_page.html +++ b/website/blog/templates/blog/blog_post_page.html @@ -5,15 +5,17 @@ {% block post_content %} {{ block.super }} - {% cache FRAGMENT_CACHE_TTL|jitter:FRAGMENT_CACHE_TTL_JITTER "similar-content" page.id request.is_preview %} -
-

Similar content

+ {% if not request.is_preview %} + {% cache FRAGMENT_CACHE_TTL|jitter:FRAGMENT_CACHE_TTL_JITTER "similar-content" page.id request.is_preview %} +
+

Similar content

- {% for page in page.get_similar_posts %} - {% block listing_item %} - {% include "common/listing-item.html" %} - {% endblock %} - {% endfor %} -
- {% endcache %} + {% for page in page.get_similar_posts %} + {% block listing_item %} + {% include "common/listing-item.html" %} + {% endblock %} + {% endfor %} +
+ {% endcache %} + {% endif %} {% endblock %}