---js { pagination: { data: 'collections.all', size: 1, alias: 'redirect', before: function (data) { return data.reduce((redirects, page) => { if (Array.isArray(page.data.redirect_from)) { for (let url of page.data.redirect_from) { redirects.push({ to: page.url, from: url }); } } else if (typeof page.data.redirect_from === 'string') { redirects.push({ to: page.url, from: page.data.redirect_from }); } return redirects; }, []); }, addAllPagesToCollections: false, }, permalink: '{{ redirect.from }}/index.html', eleventyExcludeFromCollections: true, } --- Redirecting…

Redirecting…

Click here if you are not redirected.