Skip to content

Commit 4bdbb9e

Browse files
committed
[docs] conform to Hugo 0.112.0 config parameter changes
1 parent fbc32b1 commit 4bdbb9e

File tree

4 files changed

+44
-38
lines changed

4 files changed

+44
-38
lines changed

exampleSite/config.toml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ theme = "hugo-theme-relearn"
2727
# the main language of this site; also an automatic pirrrate translation is
2828
# available in this showcase
2929
languageCode = "en"
30-
# make sure your defaultContentLanguage is the first one in the [Languages]
30+
# make sure your defaultContentLanguage is the first one in the [languages]
3131
# array below, as the theme needs to make assumptions on it
3232
defaultContentLanguage = "en"
3333
# if you want to get rrrid o' ourrr pirrrates nonsense uncomment th' next line
@@ -84,36 +84,37 @@ disableHugoGeneratorInject = true
8484
# showcase of the menu shortcuts; you can use relative URLs linking
8585
# to your content or use fully-quallified URLs to link outside of
8686
# your project
87-
[Languages]
88-
[Languages.en]
87+
[languages]
88+
[languages.en]
8989
title = "Hugo Relearn Theme"
9090
weight = 1
9191
languageName = "English"
92-
landingPageName = "<i class='fas fa-home'></i> Home"
92+
[languages.en.params]
93+
landingPageName = "<i class='fas fa-home'></i> Home"
9394

94-
[[Languages.en.menu.shortcuts]]
95+
[[languages.en.menu.shortcuts]]
9596
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
9697
identifier = "ds"
9798
url = "https://github.com/McShelby/hugo-theme-relearn"
9899
weight = 10
99100

100-
[[Languages.en.menu.shortcuts]]
101+
[[languages.en.menu.shortcuts]]
101102
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
102103
url = "more/showcase/"
103104
weight = 11
104105

105-
[[Languages.en.menu.shortcuts]]
106+
[[languages.en.menu.shortcuts]]
106107
name = "<i class='fas fa-fw fa-bookmark'></i> Hugo Documentation"
107108
identifier = "hugodoc"
108109
url = "https://gohugo.io/"
109110
weight = 20
110111

111-
[[Languages.en.menu.shortcuts]]
112+
[[languages.en.menu.shortcuts]]
112113
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
113114
url = "more/credits/"
114115
weight = 30
115116

116-
[[Languages.en.menu.shortcuts]]
117+
[[languages.en.menu.shortcuts]]
117118
name = "<i class='fas fa-fw fa-tags'></i> Tags"
118119
url = "tags/"
119120
weight = 40
@@ -124,35 +125,36 @@ disableHugoGeneratorInject = true
124125
# don't take it t' serrrious, fello'; it's prrretty hacky and:
125126
# NOT MEANT FER PRRRODUCTION! ARRR!
126127

127-
[Languages.pir]
128+
[languages.pir]
128129
title = "Cap'n Hugo Relearrrn Theme"
129130
weight = 2
130131
languageName = "Arrr! ☠ Pirrrates ☠"
131-
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
132+
[languages.pir.params]
133+
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
132134

133-
[[Languages.pir.menu.shortcuts]]
135+
[[languages.pir.menu.shortcuts]]
134136
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
135137
identifier = "ds"
136138
url = "https://github.com/McShelby/hugo-theme-relearn"
137139
weight = 10
138140

139-
[[Languages.pir.menu.shortcuts]]
141+
[[languages.pir.menu.shortcuts]]
140142
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
141143
url = "more/showcase/"
142144
weight = 11
143145

144-
[[Languages.pir.menu.shortcuts]]
146+
[[languages.pir.menu.shortcuts]]
145147
name = "<i class='fas fa-fw fa-bookmark'></i> Cap'n Hugo Documentat'n"
146148
identifier = "hugodoc"
147149
url = "https://gohugo.io/"
148150
weight = 20
149151

150-
[[Languages.pir.menu.shortcuts]]
152+
[[languages.pir.menu.shortcuts]]
151153
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
152154
url = "more/credits/"
153155
weight = 30
154156

155-
[[Languages.pir.menu.shortcuts]]
157+
[[languages.pir.menu.shortcuts]]
156158
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
157159
url = "tags/"
158160
weight = 40

exampleSite/content/basics/configuration/_index.en.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,15 @@ on the left menu. It is an alternative for clicking on the logo. To edit the
193193
appearance, you will have to configure two parameters for the defined languages:
194194

195195
```toml
196-
[Languages]
197-
[Languages.en]
196+
[languages]
197+
[languages.en]
198198
...
199+
[languages.en.params]
199200
landingPageName = "<i class='fas fa-home'></i> Home"
200201
...
201-
[Languages.pir]
202+
[languages.pir]
202203
...
204+
[languages.pir.params]
203205
landingPageName = "<i class='fas fa-home'></i> Arrr! Homme"
204206
...
205207
```

exampleSite/content/cont/i18n/_index.en.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ After learning [how Hugo handle multilingual websites](https://gohugo.io/content
1919
For example with current English and Piratized English website.
2020

2121
{{% notice note %}}
22-
Make sure your default language is defined as the first one in the `[Languages]` array, as the theme needs to make assumptions on it
22+
Make sure your default language is defined as the first one in the `[languages]` array, as the theme needs to make assumptions on it
2323
{{% /notice %}}
2424

2525

2626
```toml
2727
# English is the default language
2828
defaultContentLanguage = "en"
2929

30-
[Languages]
31-
[Languages.en]
30+
[languages]
31+
[languages.en]
3232
title = "Hugo Relearn Theme"
3333
weight = 1
3434
languageName = "English"
3535

36-
[Languages.pir]
36+
[languages.pir]
3737
title = "Cap'n Hugo Relearrrn Theme"
3838
weight = 2
3939
languageName = "Arrr! Pirrrates"

exampleSite/content/cont/menushortcuts.en.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,69 +59,71 @@ When using a multilingual website, you can set different menus for each language
5959
Example from the current website:
6060

6161
````toml
62-
[Languages]
63-
[Languages.en]
62+
[languages]
63+
[languages.en]
6464
title = "Hugo Relearn Theme"
6565
weight = 1
6666
languageName = "English"
67-
landingPageName = "<i class='fas fa-home'></i> Home"
67+
[languages.en.params]
68+
landingPageName = "<i class='fas fa-home'></i> Home"
6869

69-
[[Languages.en.menu.shortcuts]]
70+
[[languages.en.menu.shortcuts]]
7071
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
7172
identifier = "ds"
7273
url = "https://github.com/McShelby/hugo-theme-relearn"
7374
weight = 10
7475

75-
[[Languages.en.menu.shortcuts]]
76+
[[languages.en.menu.shortcuts]]
7677
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
7778
url = "more/showcase/"
7879
weight = 11
7980

80-
[[Languages.en.menu.shortcuts]]
81+
[[languages.en.menu.shortcuts]]
8182
name = "<i class='fas fa-fw fa-bookmark'></i> Hugo Documentation"
8283
identifier = "hugodoc"
8384
url = "https://gohugo.io/"
8485
weight = 20
8586

86-
[[Languages.en.menu.shortcuts]]
87+
[[languages.en.menu.shortcuts]]
8788
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
8889
url = "more/credits/"
8990
weight = 30
9091

91-
[[Languages.en.menu.shortcuts]]
92+
[[languages.en.menu.shortcuts]]
9293
name = "<i class='fas fa-fw fa-tags'></i> Tags"
9394
url = "tags/"
9495
weight = 40
9596

96-
[Languages.pir]
97+
[languages.pir]
9798
title = "Cap'n Hugo Relearrrn Theme"
9899
weight = 1
99100
languageName = "Arrr! Pirrrates"
100-
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
101+
[languages.pir.params]
102+
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
101103

102-
[[Languages.pir.menu.shortcuts]]
104+
[[languages.pir.menu.shortcuts]]
103105
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
104106
identifier = "ds"
105107
url = "https://github.com/McShelby/hugo-theme-relearn"
106108
weight = 10
107109

108-
[[Languages.pir.menu.shortcuts]]
110+
[[languages.pir.menu.shortcuts]]
109111
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
110112
url = "more/showcase/"
111113
weight = 11
112114

113-
[[Languages.pir.menu.shortcuts]]
115+
[[languages.pir.menu.shortcuts]]
114116
name = "<i class='fas fa-fw fa-bookmark'></i> Cap'n Hugo Documentat'n"
115117
identifier = "hugodoc"
116118
url = "https://gohugo.io/"
117119
weight = 20
118120

119-
[[Languages.pir.menu.shortcuts]]
121+
[[languages.pir.menu.shortcuts]]
120122
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
121123
url = "more/credits/"
122124
weight = 30
123125

124-
[[Languages.pir.menu.shortcuts]]
126+
[[languages.pir.menu.shortcuts]]
125127
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
126128
url = "tags/"
127129
weight = 40

0 commit comments

Comments
 (0)