aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 16eef5b..1bd4976 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -9,9 +9,12 @@
{% if paginator.previous %}<a href="{{ paginator.previous | safe }}">&#60; Previous</a> {% endif %}{% if paginator.next %}<a href="{{ paginator.next | safe }}">Next &#62;</a>{% endif %}
</nav>
</div>{% set section_item = get_section(path="_index.md") %}
+ {% if recent %}
<div class="toc">
<div class="toc-sticky">
<h3>Recent Posts</h3>{% for page in section_item.pages | slice(end=config.extra.recent_items) %}
{{ page_macros::page_listing(page=page) }}{% endfor %}
</div>
- </div>{% endblock content %}
+ </div>
+ {% endif %}
+ {% endblock content %}