includes: add a redirect macro

Usage example:
{% include redirect.html redirect_to="page.html" %}

Hopefully SEO doesn't hate us too much for doing it this way, but we
shall find out.
This commit is contained in:
lifehackerhansol 2024-01-09 11:07:35 -08:00
parent 73a5d7d0d7
commit 07674e433b
No known key found for this signature in database
GPG key ID: 80FB184AFC0B3B0E

2
_includes/redirect.html Normal file
View file

@ -0,0 +1,2 @@
<meta http-equiv="refresh" content="0; URL={{ include.redirect_to }}">
<link rel="canonical" href="{{ include.redirect_to }}">