From 53bdc87bfd38bb57926a3eb846ce60b23c63472d Mon Sep 17 00:00:00 2001 From: Violet <43045568+violetcraze@users.noreply.github.com> Date: Fri, 30 Oct 2020 06:52:38 -0600 Subject: [PATCH] adding discord redirect (#2827) --- _config.yml | 6 ++++++ _jekyll/layouts/external-redirect.html | 14 ++++++++++++++ _redirects/discord.md | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 _jekyll/layouts/external-redirect.html create mode 100644 _redirects/discord.md diff --git a/_config.yml b/_config.yml index 1fd2c4005c..9e93fa719b 100644 --- a/_config.yml +++ b/_config.yml @@ -114,6 +114,7 @@ collections: challenges: { output: true } learning: { output: true } more: { output: true } + redirects: { output: true } # --- Defaults --- @@ -192,3 +193,8 @@ defaults: video_type: "Teachable Machine" video_type_short: "Tutorial" can_contribute: true + + # Redirects + - scope: { path: "", type: "redirect" } + values: + layout: "external-redirect" diff --git a/_jekyll/layouts/external-redirect.html b/_jekyll/layouts/external-redirect.html new file mode 100644 index 0000000000..38ccc2cfbd --- /dev/null +++ b/_jekyll/layouts/external-redirect.html @@ -0,0 +1,14 @@ +--- +layout: base +--- + +
Redirecting you to {{ page.title }}...
+ Click here if you have redirects turned off. + +