Dagger
Search

hugo

Build hugo sites.

Installation

dagger install github.com/jedevc/daggerverse/hugo@b2b06917e338519a04404347a105a7c3bb316472

Entrypoint

Return Type
Hugo
Example
func (m *myModule) example() *Hugo  {
	return dag.
			Hugo()
}
@function
def example() -> dag.Hugo:
	return (
		dag.hugo()
	)
@func()
example(): Hugo {
	return dag
		.hugo()
}

Types

Hugo

build()

Builds a Hugo site

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
targetDirectory !-Directory containing the Hugo site
baseUrlString -Base URL of the site, overrides from config if set
hugoEnvString -Environment to build for
minifyBoolean -Whether to minify the output, overrides from config if set
hugoVersionString "latest"Version of Hugo to use (defaults to "latest")
dartSassVersionString "latest"Version of Dart Sass to use (defaults to "latest")
Example
dagger -m github.com/jedevc/daggerverse/hugo@b2b06917e338519a04404347a105a7c3bb316472 call \
 build --target DIR_PATH
func (m *myModule) example(target *Directory) *Directory  {
	return dag.
			Hugo().
			Build(target)
}
@function
def example(target: dagger.Directory) -> dagger.Directory:
	return (
		dag.hugo()
		.build(target)
	)
@func()
example(target: Directory): Directory {
	return dag
		.hugo()
		.build(target)
}