Hugo functions
Use these functions to access information about the Hugo application and the current environment.
Use these functions to access information about the Hugo application and the current environment.
hugo.BuildDate ⟼ stringReturns the compile date of the Hugo binary. Read More »
hugo.CommitHash ⟼ stringReturns the Git commit hash of the Hugo binary. Read More »
hugo.Deps ⟼ []hugo.DependencyReturns a slice of project dependencies, either Hugo Modules or local theme components. Read More »
hugo.Environment ⟼ stringReturns the current running environment. Read More »
hugo.Generator ⟼ template.HTMLRenders an HTML meta element identifying the software that generated the site. Read More »
hugo.GoVersion ⟼ stringReturns the Go version used to compile the Hugo binary Read More »
hugo.IsDevelopment ⟼ boolReports whether the current running environment is “development”. Read More »
hugo.IsExtended ⟼ boolReports whether the Hugo binary is the extended version. Read More »
hugo.IsMultihost ⟼ boolReports whether each configured language has a unique base URL. Read More »
hugo.IsMultilingual ⟼ boolReports whether there are two or more configured languages. Read More »
hugo.IsProduction ⟼ boolReports whether the current running environment is “production”. Read More »
hugo.IsServer ⟼ boolReports whether the built-in development server is running. Read More »
hugo.Store ⟼ maps.ScratchReturns a global, persistent “scratch pad” to store and manipulate data. Read More »
hugo.Version ⟼ hugo.VersionStringReturns the current version of the Hugo binary. Read More »
hugo.WorkingDir ⟼ stringReturns the project working directory. Read More »