Skip to content

Commit 7e728a9

Browse files
committed
Updating forward.html
1 parent 03ee298 commit 7e728a9

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

_layouts/forward.html

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,44 @@
11
<html lang="en">
22
<head>
33
<meta charset="utf-8"/>
4-
<meta http-equiv="refresh" content="0;url={{ page.target }}"/>
4+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
5+
6+
{% assign time = 0 %}
7+
{% assign targetname = page.target %}
8+
9+
{% if page.time %}
10+
{% assign time = page.time %}
11+
{% endif %}
12+
13+
{% if page.targetname %}
14+
{% assign targetname = page.targetname %}
15+
{% endif %}
16+
17+
{% capture title %}Redirecting to {{ targetname }}{% endcapture %}
18+
{% if page.targettitle %}
19+
{% assign title = page.targettitle %}
20+
{% endif %}
21+
<meta http-equiv="refresh" content="{{ time }};url={{ page.target }}"/>
522
<link rel="canonical" href="{{ page.target }}"/>
6-
<title>Redirecting</title>
23+
<title>{{ title }}</title>
24+
<style>
25+
body {
26+
font-family: sans-serif;
27+
max-width: 40em;
28+
margin: 1em auto;
29+
}
30+
</style>
731
</head>
832
<body>
9-
<p>Document has moved, if you aren't automatically redirected
10-
<a href="{{ page.target }}">go here</a>.</p>
33+
<h1>{{ title }}</h1>
34+
35+
{% if page.message %}
36+
<p>{{ page.message }}</p>
37+
{% else %}
38+
<p>This document has moved!</p>
39+
{% endif %}
40+
41+
<p>Redirecting to <a href="{{ page.target }}">{{ targetname }}</a> in {{ time }} seconds.</p>
42+
1143
</body>
1244
</html>

0 commit comments

Comments
 (0)