|
|
@@ -1,5 +1,5 @@
|
|
|
{% extends "base.html" %}
|
|
|
-{% load wagtailcore_tags navigation_tags wagtailimages_tags %}
|
|
|
+{% load wagtailcore_tags navigation_tags wagtailimages_tags wagtail_cache %}
|
|
|
|
|
|
{% if tag %}
|
|
|
{% block title %}
|
|
|
@@ -37,9 +37,11 @@
|
|
|
|
|
|
<div class="blog-list">
|
|
|
{% if posts %}
|
|
|
- {% for blog in posts %}
|
|
|
- {% include "includes/card/blog-listing-card.html" %}
|
|
|
- {% endfor %}
|
|
|
+ {% wagtailcache 500 posts %}
|
|
|
+ {% for blog in posts %}
|
|
|
+ {% include "includes/card/blog-listing-card.html" %}
|
|
|
+ {% endfor %}
|
|
|
+ {% endwagtailcache %}
|
|
|
{% else %}
|
|
|
<div class="col-md-12">
|
|
|
<p>Oh, snap. Looks like we were too busy baking to write any blog posts. Sorry.</p>
|