# Keep previous "versions" of a page

**URL:** https://zola.discourse.group/t/keep-previous-versions-of-a-page/2857
**Category:** Support
**Created:** [September 5, 2025, 6:52pm UTC](https://zola.discourse.group/t/keep-previous-versions-of-a-page/2857 "2025-09-05T18:52:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![deilayborer](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@deilayborer](https://zola.discourse.group/u/deilayborer)
#### Post date: [September 5, 2025, 6:52pm UTC](https://zola.discourse.group/t/keep-previous-versions-of-a-page/2857/1 "2025-09-05T18:52:56Z")

</div>

I’m trying to hack together a theme, whereby I can keep access to previous “versions” of a given file.

Specifically, I’m hoping to have it where I can have multiple files in a given directory, each representing a version of that content. The default when someone navigates to that section would be to see the newest version, but then there’d be a list/dropdown menu/whatever with the previous version(s), and selecting one would navigate to that. My hope is that there’s some way to have the `page.html` template check for other files in the same directory and sort them by date, but I’m not clear on how I’d do that.

Related to this, does sorting by date (in general) require the date in the file name, or can Zola read file properties (e.g. last modified)?
