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 98376c09b8
commit 76d31c0130
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 }}">