Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Language ¶
type Language struct { Lang string Weight int // for sort // If set per language, this tells Hugo that all content files without any // language indicator (e.g. my-page.en.md) is in this language. // This is usually a pathspec relative to the working dir, but it can be an // absolute directory reference. It is what we get. // For internal use. ContentDir string // Global config. // For internal use. Cfg config.Provider // Language specific config. // For internal use. LocalCfg config.Provider // Composite config. // For internal use. config.Provider // contains filtered or unexported fields }
Language manages specific-language configuration.
func NewDefaultLanguage ¶
NewDefaultLanguage creates the default language for a config.Provider. If not otherwise specified the default is "en".
Click to show internal directories.
Click to hide internal directories.