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. 詳しく見る »
hugo.CommitHash ⟼ stringReturns the Git commit hash of the Hugo binary. 詳しく見る »
hugo.Environment ⟼ stringReturns the current running environment. 詳しく見る »
hugo.Generator ⟼ template.HTMLRenders an HTML meta element identifying the software that generated the site. 詳しく見る »
hugo.GoVersion ⟼ stringReturns the Go version used to compile the Hugo binary 詳しく見る »
hugo.IsDevelopment ⟼ boolReports whether the current running environment is “development”. 詳しく見る »
hugo.IsExtended ⟼ boolReports whether the Hugo binary is the extended version. 詳しく見る »
hugo.IsMultihost ⟼ boolReports whether each configured language has a unique base URL. 詳しく見る »
hugo.IsMultilingual ⟼ boolReports whether there are two or more configured languages. 詳しく見る »
hugo.IsProduction ⟼ boolReports whether the current running environment is “production”. 詳しく見る »
hugo.IsServer ⟼ boolReports whether the built-in development server is running. 詳しく見る »
hugo.Version ⟼ hugo.VersionStringReturns the current version of the Hugo binary. 詳しく見る »
hugo.WorkingDir ⟼ stringReturns the project working directory. 詳しく見る »