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
73a5d7d0d7
commit
07674e433b
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