0.158.0 deprecations (#805)
* 0.158.0 changes - using same capitalization as huge docs * LanguageCode -> Locale LanguageDirection -> Direction LanguageName -> Label * language.lang to language.name * all changed functions added in 0.158.0
This commit is contained in:
@@ -8,7 +8,7 @@ layout: landing
|
||||
# HUGO BOOK {anchor=false}
|
||||
[Hugo](https://gohugo.io) documentation theme as simple as plain book
|
||||
|
||||
[{{< badge style="info" title="Hugo" value="0.146" >}}](https://github.com/gohugoio/hugo/releases/tag/v0.146.7)
|
||||
[{{< badge style="info" title="Hugo" value="0.158" >}}](https://github.com/gohugoio/hugo/releases/tag/v0.158.0)
|
||||
[{{< badge style="default" title="License" value="MIT" >}}](https://github.com/alex-shpak/hugo-book/blob/main/LICENSE)
|
||||
|
||||
{{<button href="/docs/example">}}Explore{{</button>}}
|
||||
|
||||
@@ -31,19 +31,19 @@ enableGitInfo = true
|
||||
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
||||
[languages]
|
||||
[languages.en]
|
||||
languageName = 'English'
|
||||
label = 'English'
|
||||
contentDir = 'content.en'
|
||||
weight = 1
|
||||
|
||||
[languages.zh]
|
||||
languageName = 'Chinese'
|
||||
label = 'Chinese'
|
||||
contentDir = 'content.zh'
|
||||
weight = 2
|
||||
|
||||
[languages.he]
|
||||
languageName = 'Hebrew'
|
||||
label = 'Hebrew'
|
||||
contentDir = 'content.he'
|
||||
languageDirection = 'rtl'
|
||||
direction = 'rtl'
|
||||
weight = 3
|
||||
|
||||
[menu]
|
||||
|
||||
@@ -30,17 +30,17 @@ markup:
|
||||
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
|
||||
languages:
|
||||
en:
|
||||
languageName: English
|
||||
label: English
|
||||
contentDir: content.en
|
||||
weight: 1
|
||||
zh:
|
||||
languageName: Chinese
|
||||
label: Chinese
|
||||
contentDir: content.zh
|
||||
weight: 2
|
||||
he:
|
||||
languageName: Hebrew
|
||||
label: Hebrew
|
||||
contentDir: content.he
|
||||
languageDirection: rtl
|
||||
direction: rtl
|
||||
weight: 3
|
||||
|
||||
menu:
|
||||
|
||||
Reference in New Issue
Block a user