Dagger
Search

hugo

Build hugo sites.

Installation

dagger install github.com/jedevc/daggerverse/hugo@v1.0.0

Entrypoint

Return Type
Hugo
Example
dagger -m github.com/jedevc/daggerverse/hugo@669bcff4b7700a5d6338770409fbbf0d0e33d645 call \
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@669bcff4b7700a5d6338770409fbbf0d0e33d645 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)
}