Skip to content

Commit

Permalink
Create forward.html
Browse files Browse the repository at this point in the history
  • Loading branch information
asebian authored Aug 3, 2022
1 parent 4074501 commit 8e2d853
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/forward.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

{% assign time = 0 %}
{% assign targetname = page.target %}

{% if page.time %}
{% assign time = page.time %}
{% endif %}

{% if page.targetname %}
{% assign targetname = page.targetname %}
{% endif %}

{% capture title %}Redirecting to {{ targetname }}{% endcapture %}
{% if page.targettitle %}
{% assign title = page.targettitle %}
{% endif %}
<meta http-equiv="refresh" content="{{ time }};url={{ page.target }}"/>
<link rel="canonical" href="{{ page.target }}"/>
<title>{{ title }}</title>
<style>
body {
font-family: sans-serif;
max-width: 40em;
margin: 1em auto;
}
</style>
</head>
<body>
<h1>{{ title }}</h1>

{% if page.message %}
<p>{{ page.message }}</p>
{% else %}
<p>This document has moved!</p>
{% endif %}

<p>Redirecting to <a href="{{ page.target }}">{{ targetname }}</a> in {{ time }} seconds.</p>

</body>
</html>

0 comments on commit 8e2d853

Please sign in to comment.