mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
@@ -185,6 +185,8 @@ func toSortedLanguages(cfg config.Provider, l map[string]interface{}) (Languages
|
||||
language.Title = cast.ToString(v)
|
||||
case "languagename":
|
||||
language.LanguageName = cast.ToString(v)
|
||||
case "languagedirection":
|
||||
language.LanguageDirection = cast.ToString(v)
|
||||
case "weight":
|
||||
language.Weight = cast.ToInt(v)
|
||||
case "contentdir":
|
||||
|
@@ -41,10 +41,11 @@ var globalOnlySettings = map[string]bool{
|
||||
|
||||
// Language manages specific-language configuration.
|
||||
type Language struct {
|
||||
Lang string
|
||||
LanguageName string
|
||||
Title string
|
||||
Weight int
|
||||
Lang string
|
||||
LanguageName string
|
||||
LanguageDirection string
|
||||
Title string
|
||||
Weight int
|
||||
|
||||
Disabled bool
|
||||
|
||||
|
Reference in New Issue
Block a user