# Efficient way to include posts archive on every page?

**URL:** <https://zola.discourse.group/t/efficient-way-to-include-posts-archive-on-every-page/1252>\
**Category:** Uncategorized\
**Created:** [April 2, 2022, 12:58pm UTC](https://zola.discourse.group/t/efficient-way-to-include-posts-archive-on-every-page/1252 "2022-04-02T12:58:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![napoleon](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/napoleon/32/709_2.png) [@napoleon](https://zola.discourse.group/u/napoleon)\
**Post date:** [April 2, 2022, 12:58pm UTC](https://zola.discourse.group/t/efficient-way-to-include-posts-archive-on-every-page/1252/1 "2022-04-02T12:58:57Z")

</div>

In my `base.html` template I have a `for` loop that prints all post titles in the footer, grouped by year.  
The `base.html` template is used via `{% extends %}` on all page and section templates.

Zola’s render times have of course skyrocketed up to 20 seconds, while it runs the same loop for every page on the site.

Is there a more efficient way in Zola to render such a loop just once and reuse its result on every page?

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [April 3, 2022, 6:47am UTC](https://zola.discourse.group/t/efficient-way-to-include-posts-archive-on-every-page/1252/2 "2022-04-03T06:47:43Z")

</div>

> [@napoleon](#):
>
> Is there a more efficient way in Zola to render such a loop just once and reuse its result on every page?

Sadly, not currently.

---

<div class="post-metadata">

**Author:** ![napoleon](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/napoleon/32/709_2.png) [@napoleon](https://zola.discourse.group/u/napoleon)\
**Post date:** [April 4, 2022, 2:11pm UTC](https://zola.discourse.group/t/efficient-way-to-include-posts-archive-on-every-page/1252/3 "2022-04-04T14:11:09Z")

</div>

Thank you! I will find a workaround in the meantime.
