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
Name | Type | Default Value | Description |
---|---|---|---|
target | Directory ! | - | Directory containing the Hugo site |
baseUrl | String | - | Base URL of the site, overrides from config if set |
hugoEnv | String | - | Environment to build for |
minify | Boolean | - | Whether to minify the output, overrides from config if set |
hugoVersion | String | "latest" | Version of Hugo to use (defaults to "latest") |
dartSassVersion | String | "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)
}