HUGO
Menu
GitHub 86675 stars Mastodon

hugo.BuildDate

hugo.BuildDate

Returns the compile date of the Hugo binary.

hugo.CommitHash

hugo.CommitHash

Returns the Git commit hash of the Hugo binary.

hugo.Data

hugo.Data

Returns a data structure composed from the files in the data directory.

hugo.Deps

hugo.Deps

Returns a slice of project dependencies, either Hugo Modules or local theme components.

hugo.Environment

hugo.Environment

Returns the current running environment.

hugo.Generator

hugo.Generator

Renders an HTML meta element identifying the software that generated the site.

hugo.GoVersion

hugo.GoVersion

Returns the Go version used to compile the Hugo binary

hugo.IsDevelopment

hugo.IsDevelopment

Reports whether the current running environment is "development".

hugo.IsExtended

hugo.IsExtended

Reports whether the Hugo binary is either the extended or extended/deploy edition.

hugo.IsMultihost

hugo.IsMultihost

Reports whether each configured language has a unique base URL.

hugo.IsMultilingual

hugo.IsMultilingual

Reports whether there are two or more configured languages.

hugo.IsProduction

hugo.IsProduction

Reports whether the current running environment is "production".

hugo.IsServer

hugo.IsServer

Reports whether the built-in development server is running.

hugo.Sites

hugo.Sites

Returns a collection of all sites for all dimensions.

hugo.Store

hugo.Store

Returns a globally scoped "scratch pad" to store and manipulate data.

hugo.Version

hugo.Version

Returns the current version of the Hugo binary.

hugo.WorkingDir

hugo.WorkingDir

Returns the project working directory.