--- # From https://github.com/11ty/eleventy/issues/510 # # This file does hijinx with the "pagination" system to generate many small pages from one set of data... # and uses that do to redirects from some URLs to others. # We use this to try to keep old links working. # # There's limited power to this approach (it only works for specific pages listed; it can't glob), # but those are limitations inherent to an approach that works via static site gen, rather than via server configuration. # The related upside of an approach that works via static site gen is the portability. pagination: data: redirects size: 1 alias: redirect # Add your redirection tuples to this list! redirects: - {"from": "/tribune/", "to": "/tribune/2023/"} - {"from": "/ief-demystifiee/", "to": "/idees-recues/"} - {"from": "/ief-demystifiee/rejet-ecole/", "to": "/idees-recues/rejet-ecole/"} - {"from": "/ief-demystifiee/rejet-systeme/", "to": "/idees-recues/rejet-systeme/"} - {"from": "/ief-demystifiee/sociabilisation/", "to": "/idees-recues/sociabilisation/"} # The "permalink" attribute determines where the output page will be located. permalink: "{{ redirect.from }}" # The "redirect" layout just has a small html header with the meta tags that do redirection. layout: layouts/redirect ---