docs: rename english pirate translation to avoid crash on rendering #90

This commit is contained in:
Sören Weber 2021-09-20 22:04:35 +02:00
parent 6e61a7e1e4
commit 02c72c9f31
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
49 changed files with 16 additions and 16 deletions

View file

@ -65,31 +65,31 @@ relativeURLs = true
url = "/credits"
weight = 30
[Languages.en-pir]
[Languages.pir]
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
weight = 1
languageName = "Arrr! Pirrrates"
landingPageURL = "/en-pir"
landingPageURL = "/pir"
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
identifier = "ds"
url = "https://github.com/McShelby/hugo-theme-relearn"
weight = 10
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
url = "showcase"
weight = 11
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bookmark'></i> Cap'n Hugo Documentat'n"
identifier = "hugodoc"
url = "https://gohugo.io/"
weight = 20
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
url = "/credits"
weight = 30

View file

@ -97,9 +97,9 @@ appearance, you will have to configure two parameters for the defined languages:
landingPageURL = "/en"
landingPageName = "<i class='fas fa-home'></i> Home"
...
[Lanugages.en-pir]
[Lanugages.pir]
...
landingPageURL = "/en-pir"
landingPageURL = "/pir"
landingPageName = "<i class='fas fa-home'></i> Arrr! Homme"
...
```

View file

@ -29,7 +29,7 @@ title = "Documentation for Hugo Relearn Theme"
weight = 1
languageName = "English"
[Languages.en-pir]
[Languages.pir]
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
weight = 2
languageName = "Arrr! Pirrrates"
@ -39,10 +39,10 @@ Then, for each new page, append the *id* of the language to the file.
- Single file `my-page.md` is split in two files:
- in English: `my-page.md`
- in Piratized English: `my-page.en-pir.md`
- in Piratized English: `my-page.pir.md`
- Single file `_index.md` is split in two files:
- in English: `_index.md`
- in Piratized English: `_index.en-pir.md`
- in Piratized English: `_index.pir.md`
{{% notice info %}}
Be aware that only translated pages are displayed in menu. It's not replaced with default language content.

View file

@ -82,29 +82,29 @@ name = "<i class='fas fa-bullhorn'></i> Credits"
url = "/credits"
weight = 30
[Languages.en-pir]
[Languages.pir]
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
weight = 2
languageName = "Arrr! Pirrrates"
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fab fa-github'></i> GitHub repo"
identifier = "ds"
url = "https://github.com/McShelby/hugo-theme-relearn"
weight = 10
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-camera'></i> Showcases"
url = "/showcase"
weight = 11
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-bookmark'></i> Cap'n Hugo Documentat'n"
identifier = "hugodoc"
url = "https://gohugo.io/"
weight = 20
[[Languages.en-pir.menu.shortcuts]]
[[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-bullhorn'></i> Crrredits"
url = "/credits"
weight = 30