new_site/_layouts
Andrew Boyer ae0c1a62cf
improved redirect mapping (#2157)
In reference to issue:
https://github.com/alshedivat/al-folio/discussions/1818

Redirect cases were only happening on the surface level, essentially
just affecting the links on [blog
index](https://alshedivat.github.io/al-folio/blog/page/4/index.htm) and
[year tag](https://alshedivat.github.io/al-folio/blog/2022/). However,
from the actual
[site](https://alshedivat.github.io/al-folio/blog/2022/redirect/), it
would automatically redirect to the `base_url` rather than the actual
`redirect`.

In my update, if `redirect: true`, like it is in `404.md`, redirect
behavior is the same, redirecting to the `base_url`. If it is an
external link, then the redirect is external. And finally if it is an
internal redirect, like it is in
https://alshedivat.github.io/al-folio/blog/2022/redirect/, than the
redirect is `page.redirect | relative_url`
2024-02-04 17:27:10 -03:00
..
about.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00
archive-category.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
archive-tag.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
archive-year.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
bib.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00
cv.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00
default.liquid improved redirect mapping (#2157) 2024-02-04 17:27:10 -03:00
distill.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00
none.liquid format code with prettier.io (#2048) 2024-01-10 00:10:51 -05:00
page.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00
post.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00
profiles.liquid Fix broken links (#2077) 2024-01-15 11:09:45 -03:00