-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathredirect.html
18 lines (18 loc) · 961 Bytes
/
redirect.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- jekyll-redirect-from will use this template to implement redirects. This modification to the template helps polyglot redirect accounting for languages -->
{% assign redirection = page.redirect.to | remove_first: site.url %}
{% if site.active_lang == site.default_lang %}
{% assign redirectTo = site.url | append: redirection %}
{% else %}
{% assign redirectTo = site.url | append: "/" | append: site.active_lang | append: redirection %}
{{ site.active_lang }}/{% endif %}
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting…</title>
<link rel="canonical" {% static_href %}href="{{ redirectTo }}"{% endstatic_href %}>
<script>location="{{ redirectTo }}"</script>
<meta http-equiv="refresh" content="0; url={{ redirectTo }}">
<meta name="robots" content="noindex">
<h1>Redirecting…</h1>
<a {% static_href %}href="{{ redirectTo }}"{% endstatic_href %}>Click here if you are not redirected.</a>
</html>