Dagger
Search

hugo

No long description provided.

Installation

dagger install github.com/stuttgart-things/dagger/hugo@v0.10.0

Entrypoint

Return Type
Hugo
Example
dagger -m github.com/stuttgart-things/dagger/hugo@40431af7005b8f4b0566959c7dd915eff6a61d55 call \
func (m *MyModule) Example() *dagger.Hugo  {
	return dag.
			Hugo()
}
@function
def example() -> dagger.Hugo:
	return (
		dag.hugo()
	)
@func()
example(): Hugo {
	return dag
		.hugo()
}

Types

Hugo 🔗

baseImage() 🔗

Return Type
String !
Example
dagger -m github.com/stuttgart-things/dagger/hugo@40431af7005b8f4b0566959c7dd915eff6a61d55 call \
 base-image
func (m *MyModule) Example(ctx context.Context) string  {
	return dag.
			Hugo().
			BaseImage(ctx)
}
@function
async def example() -> str:
	return await (
		dag.hugo()
		.base_image()
	)
@func()
async example(): Promise<string> {
	return dag
		.hugo()
		.baseImage()
}

initSite() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
nameString !-No description provided
configFile !-No description provided
contentDirectory !-No description provided
themeString "github.com/joshed-io/reveal-hugo"The Theme to use
Example
dagger -m github.com/stuttgart-things/dagger/hugo@40431af7005b8f4b0566959c7dd915eff6a61d55 call \
 init-site --name string --config file:path --content DIR_PATH
func (m *MyModule) Example(name string, config *dagger.File, content *dagger.Directory) *dagger.Directory  {
	return dag.
			Hugo().
			InitSite(name, config, content)
}
@function
def example(name: str, config: dagger.File, content: dagger.Directory) -> dagger.Directory:
	return (
		dag.hugo()
		.init_site(name, config, content)
	)
@func()
example(name: string, config: File, content: Directory): Directory {
	return dag
		.hugo()
		.initSite(name, config, content)
}

serve() 🔗

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
configFile !-No description provided
contentDirectory !-No description provided
nameString "hugo"The project name
portString "1313"The Port to use
themeString "github.com/joshed-io/reveal-hugo"The Theme to use
Example
dagger -m github.com/stuttgart-things/dagger/hugo@40431af7005b8f4b0566959c7dd915eff6a61d55 call \
 serve --config file:path --content DIR_PATH
func (m *MyModule) Example(config *dagger.File, content *dagger.Directory) *dagger.Service  {
	return dag.
			Hugo().
			Serve(config, content)
}
@function
def example(config: dagger.File, content: dagger.Directory) -> dagger.Service:
	return (
		dag.hugo()
		.serve(config, content)
	)
@func()
example(config: File, content: Directory): Service {
	return dag
		.hugo()
		.serve(config, content)
}