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:
parent
98376c09b8
commit
76d31c0130
1 changed files with 2 additions and 0 deletions
2
_includes/redirect.html
Normal file
2
_includes/redirect.html
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<meta http-equiv="refresh" content="0; URL={{ include.redirect_to }}">
|
||||||
|
<link rel="canonical" href="{{ include.redirect_to }}">
|
Loading…
Reference in a new issue