Generates a site using Hugo, a Fast and Flexible Website Generator.
The Build Task will automatically download the hugo
executable, if the version is not already present on the build machine, and invoke it.
You can specify some common options.
Build.SourcesDirectory
, passed as --source
flag.Build.ArtifactStagingDirectory
, passed as --destination
flag.latest
, 0.25.1
, 0.24
, but not v0.24
(pick valid values from Hugo Releases page). If the preferred version cannot be found, the latest released version will be used instead.http://example.com/
, passed as --baseURL
flag.--buildDrafts
flag.--buildExpired
flag.--buildFuture
flag./filename.html
instead of /filename/
, passed as --uglyURLs
flag.A detailed walk through is here Building a Hugo Site with the Azure DevOps Extension
More Information on Hugo on this site.
The Hugo logos are copyright © Steve Francia 2013–2022.
uglyURLs
option, deprecated since Hugo 0.xx ???additionalArgs
option to allow custom arguments.