Skip to content

Commit a96010d

Browse files
Add redirects (#157)
1 parent b31bd98 commit a96010d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

website/_data/redirects.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[
2+
{ "from": "/documentation", "to": "https://docs.monogame.net" }
3+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en-US">
3+
<meta charset="utf-8"/>
4+
<title>Redirecting&hellip;</title>
5+
<link rel="canonical" href="{{ redirect.to | url }}"/>
6+
<script>
7+
location = '{{ redirect.to | url }}';
8+
</script>
9+
<meta http-equiv="refresh" content="0; url={{ redirect.to | url }}"/>
10+
<meta name="robots" content="noindex"/>
11+
<h1>Redirecting&hellip;</h1>
12+
<a href="{{ redirect.to | url }}">Click here if you are not redirected.</a>
13+
</html>

website/content/redirects.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
pagination:
3+
data: redirects
4+
size: 1
5+
alias: redirect
6+
permalink: "{{ redirect.from }}"
7+
layout: "layouts/redirect.layout.njk"
8+
---

0 commit comments

Comments
 (0)