Skip to content

Commit

Permalink
Replaces hugo aliases by Netlify redirects (#921)
Browse files Browse the repository at this point in the history
- Simpllify translation intructions
- Regroup all redirects in one place
  • Loading branch information
tdelmas committed Feb 11, 2020
1 parent 2f434eb commit 4a929f1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
1 change: 0 additions & 1 deletion TRANSLATION.md
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion content/en/certificates.md
Expand Up @@ -4,7 +4,6 @@ linkTitle: Chain of Trust (Root and Intermediate Certificates)
slug: certificates
top_graphic: 5
lastmod: 2020-02-07
aliases: [/certs]
---

{{< lastmod >}}
Expand Down
2 changes: 0 additions & 2 deletions content/en/docs/ct-logs.html
Expand Up @@ -3,8 +3,6 @@
slug: ct-logs
top_graphic: 4
lastmod: 2020-02-05
aliases:
- /ct-logs
---

{{< lastmod >}}
Expand Down
1 change: 0 additions & 1 deletion content/en/getting-started.md
Expand Up @@ -2,7 +2,6 @@
title: Getting Started
slug: getting-started
top_graphic: 3
aliases : [/howitworks]
date: 2020-02-11
---

Expand Down
18 changes: 18 additions & 0 deletions netlify.toml
Expand Up @@ -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"
Expand Down

0 comments on commit 4a929f1

Please sign in to comment.