From 4a929f154771a762ca52113471971f6e93f93b5a Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 12 Feb 2020 00:32:03 +0100 Subject: [PATCH] Replaces hugo aliases by Netlify redirects (#921) - Simpllify translation intructions - Regroup all redirects in one place --- TRANSLATION.md | 1 - content/en/certificates.md | 1 - content/en/docs/ct-logs.html | 2 -- content/en/getting-started.md | 1 - netlify.toml | 18 ++++++++++++++++++ 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/TRANSLATION.md b/TRANSLATION.md index 006470b19..510b393ab 100644 --- a/TRANSLATION.md +++ b/TRANSLATION.md @@ -20,7 +20,6 @@ Check [existing translation pull-requests](https://github.com/letsencrypt/websit You can start translating the files that are inside `content\XX\`: * Copy the English version of the file you wish to translate into `content\XX\` -* If the header of the file contains "`aliases:`", **you must remove the line with "`aliases:`"** * Do **not** change `date` or `lastmod` : they must correspond to the the English version (and not when the translation occured: it's used to detect when a translation is out-of-sync) * If your translation takes time, please open early a draft pull-request so others know you are working on it diff --git a/content/en/certificates.md b/content/en/certificates.md index 19c425a84..e003c80d3 100644 --- a/content/en/certificates.md +++ b/content/en/certificates.md @@ -4,7 +4,6 @@ linkTitle: Chain of Trust (Root and Intermediate Certificates) slug: certificates top_graphic: 5 lastmod: 2020-02-07 -aliases: [/certs] --- {{< lastmod >}} diff --git a/content/en/docs/ct-logs.html b/content/en/docs/ct-logs.html index 81689e11e..cfd188b6f 100644 --- a/content/en/docs/ct-logs.html +++ b/content/en/docs/ct-logs.html @@ -3,8 +3,6 @@ slug: ct-logs top_graphic: 4 lastmod: 2020-02-05 -aliases: - - /ct-logs --- {{< lastmod >}} diff --git a/content/en/getting-started.md b/content/en/getting-started.md index 50656f3d8..1d40fa2d7 100644 --- a/content/en/getting-started.md +++ b/content/en/getting-started.md @@ -2,7 +2,6 @@ title: Getting Started slug: getting-started top_graphic: 3 -aliases : [/howitworks] date: 2020-02-11 --- diff --git a/netlify.toml b/netlify.toml index 4f9ed82ae..9035c7bf6 100644 --- a/netlify.toml +++ b/netlify.toml @@ -12,6 +12,24 @@ to = "https://www.abetterinternet.org/careers" status = 302 force = false +[[redirects]] +from = "/certs" +to = "/certificates" +status = 302 +force = false + +[[redirects]] +from = "/howitworks" +to = "/getting-started" +status = 302 +force = false + +[[redirects]] +from = "/ct-logs" +to = "/docs/ct-logs" +status = 302 +force = false + [[redirects]] from = "/de/*" to = "/de/404.html"