olddocs/_layouts/redirect.html (34 lines of code) (raw):
---
# Jekyll layout to create URL redirects
# https://github.com/jekylltools/jekyll-redirect-layout
# v1.7
---
{%- assign destination = page.destination | absolute_url -%}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
{% if page.canonical == true -%}
<link rel="canonical" href="{{ destination }}">
{% endif -%}
<noscript>
<meta http-equiv="refresh" content="0; url={{ destination }}">
</noscript>
<!--[if lt IE 9]><script type="text/javascript">var IE_fix=true;</script><![endif]-->
<script type="text/javascript">
var url = "{{ destination }}" + window.location.hash;
if (typeof IE_fix != "undefined") {
document.write("Redirecting...");
var referLink = document.createElement("a");
referLink.href = url;
document.body.appendChild(referLink);
referLink.click();
} else {
window.location.replace(url);
}
</script>
<title>Redirecting...</title>
</head>
<body>
<a href="{{ destination }}">Follow this link if you are not redirected automatically.</a>
</body>
</html>