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

View file

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

View file

@ -29,7 +29,7 @@ title = "Documentation for Hugo Relearn Theme"
weight = 1 weight = 1
languageName = "English" languageName = "English"
[Languages.en-pir] [Languages.pir]
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme" title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
weight = 2 weight = 2
languageName = "Arrr! Pirrrates" 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: - Single file `my-page.md` is split in two files:
- in English: `my-page.md` - 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: - Single file `_index.md` is split in two files:
- in English: `_index.md` - in English: `_index.md`
- in Piratized English: `_index.en-pir.md` - in Piratized English: `_index.pir.md`
{{% notice info %}} {{% notice info %}}
Be aware that only translated pages are displayed in menu. It's not replaced with default language content. 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" url = "/credits"
weight = 30 weight = 30
[Languages.en-pir] [Languages.pir]
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme" title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
weight = 2 weight = 2
languageName = "Arrr! Pirrrates" languageName = "Arrr! Pirrrates"
[[Languages.en-pir.menu.shortcuts]] [[Languages.pir.menu.shortcuts]]
name = "<i class='fab fa-github'></i> GitHub repo" name = "<i class='fab fa-github'></i> GitHub repo"
identifier = "ds" identifier = "ds"
url = "https://github.com/McShelby/hugo-theme-relearn" url = "https://github.com/McShelby/hugo-theme-relearn"
weight = 10 weight = 10
[[Languages.en-pir.menu.shortcuts]] [[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-camera'></i> Showcases" name = "<i class='fas fa-camera'></i> Showcases"
url = "/showcase" url = "/showcase"
weight = 11 weight = 11
[[Languages.en-pir.menu.shortcuts]] [[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-bookmark'></i> Cap'n Hugo Documentat'n" name = "<i class='fas fa-bookmark'></i> Cap'n Hugo Documentat'n"
identifier = "hugodoc" identifier = "hugodoc"
url = "https://gohugo.io/" url = "https://gohugo.io/"
weight = 20 weight = 20
[[Languages.en-pir.menu.shortcuts]] [[Languages.pir.menu.shortcuts]]
name = "<i class='fas fa-bullhorn'></i> Crrredits" name = "<i class='fas fa-bullhorn'></i> Crrredits"
url = "/credits" url = "/credits"
weight = 30 weight = 30