diff --git a/_config.yml b/_config.yml index 9242d167..b1c5cf7b 100644 --- a/_config.yml +++ b/_config.yml @@ -36,6 +36,9 @@ permalink: /guides/:title collections: games: output: true + redirects: + output: true + permalink: /:path ### Analytics ### @@ -52,6 +55,11 @@ defaults: type: "games" values: layout: "game" + - scope: + path: "" + type: "redirects" + values: + layout: "redirect" - scope: path: "" type: "posts" diff --git a/_layouts/redirect.html b/_layouts/redirect.html new file mode 100644 index 00000000..13736c7f --- /dev/null +++ b/_layouts/redirect.html @@ -0,0 +1,15 @@ +--- +layout: null +--- +{% capture new-url %}{{ site.url }}{{ page.new-path }}{% endcapture %} + +
+This page has been moved to + {{ new-url }}. +
+ + \ No newline at end of file diff --git a/_redirects/Another Metroid 2 Remake/index.html b/_redirects/Another Metroid 2 Remake/index.html new file mode 100644 index 00000000..33d54126 --- /dev/null +++ b/_redirects/Another Metroid 2 Remake/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/am2r/videos +--- \ No newline at end of file diff --git a/_redirects/Cave Story/index.html b/_redirects/Cave Story/index.html new file mode 100644 index 00000000..372c69d4 --- /dev/null +++ b/_redirects/Cave Story/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/cave_story/videos +--- \ No newline at end of file diff --git a/_redirects/Metroid Dread/index.html b/_redirects/Metroid Dread/index.html new file mode 100644 index 00000000..da90765c --- /dev/null +++ b/_redirects/Metroid Dread/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/dread/videos +--- \ No newline at end of file diff --git a/_redirects/Metroid Prime 2 Echoes/index.html b/_redirects/Metroid Prime 2 Echoes/index.html new file mode 100644 index 00000000..6ca13a0b --- /dev/null +++ b/_redirects/Metroid Prime 2 Echoes/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/prime2/videos +--- \ No newline at end of file diff --git a/_redirects/Metroid Prime 3 Corruption/index.html b/_redirects/Metroid Prime 3 Corruption/index.html new file mode 100644 index 00000000..854f0f63 --- /dev/null +++ b/_redirects/Metroid Prime 3 Corruption/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/prime3/videos +--- \ No newline at end of file diff --git a/_redirects/Metroid Prime/index.html b/_redirects/Metroid Prime/index.html new file mode 100644 index 00000000..49a62f3a --- /dev/null +++ b/_redirects/Metroid Prime/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/prime1/videos +--- \ No newline at end of file diff --git a/_redirects/Metroid Samus Returns/index.html b/_redirects/Metroid Samus Returns/index.html new file mode 100644 index 00000000..b2b24cb5 --- /dev/null +++ b/_redirects/Metroid Samus Returns/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/samus_returns/videos +--- \ No newline at end of file diff --git a/_redirects/Super Metroid/index.html b/_redirects/Super Metroid/index.html new file mode 100644 index 00000000..523022a2 --- /dev/null +++ b/_redirects/Super Metroid/index.html @@ -0,0 +1,3 @@ +--- +new-path: /games/super_metroid/videos +--- \ No newline at end of file