an model for avoiding broken links by automatically checking previous versions of your site before serving a 404, using site.js
If you have static archives of previous versions of your site, you can have Site.js automatically serve them for you.
Just put them into folder named
If a path cannot be found in your current site, Site.js will search for it first in
.archive-2and, if it cannot find it there either, in
Paths in your current site will override those in
.archive-2and those in
.archive-2will, similarly, override those in
This was you create a cascade of archives where you can serve static snapshots of older content.
Using the archival cascade, old links will never die but if you do replace them with newer content in newer versions, those will take precedence.
So, after this step, my archive site structure looked like this:
ind.ie/ ├ .hugo │ ╰ (contents of the latest ind.ie site) ╰ .archive-1 ╰ (contents of the ind.ie site from 2013-2018)