Now with redirect layout
This commit is contained in:
parent
38f7c1ae4c
commit
22204e7e15
5 changed files with 38 additions and 2 deletions
24
_layouts/redirect.html
Normal file
24
_layouts/redirect.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
# This layout is used to redirect pages, if you moved them.
|
||||
# Use the following settings in front matter:
|
||||
#
|
||||
# layout: redirected
|
||||
# sitemap: false
|
||||
# permalink: /old-location/
|
||||
# redirect_to: /new-location/
|
||||
#
|
||||
# Idea and Code by: http://codingtips.kanishkkunal.in/about/
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="canonical" href="{{ page.redirect_to }}"/>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta http-equiv="refresh" content="0;url={{ page.redirect_to }}" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Redirecting...</h1>
|
||||
{{ site.language.if_you_are_not_redirected_automatically }} <a href="{{ page.redirect_to }}">{{ site.language.click_here }}<a>.
|
||||
<script>location='{{ page.redirect_to }}'</script>
|
||||
</body>
|
||||
</html>
|
Reference in a new issue