Dagger
Search

hugo

No long description provided.

Installation

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

Entrypoint

Return Type
Hugo
Example
dagger -m github.com/stuttgart-things/dagger/hugo@a48b3a3fd70013e7d851a94d93c5a5ee0b512577 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@a48b3a3fd70013e7d851a94d93c5a5ee0b512577 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()
}

serve() 🔗

Return Type
Service !
Arguments
NameTypeDefault ValueDescription
configFile !-No description provided
contentDirectory !-No description provided
nameString "hugo"The project name
baseUrlString "0.0.0.0"The base url to use
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@a48b3a3fd70013e7d851a94d93c5a5ee0b512577 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)
}

exportStaticContent() 🔗

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
siteDirDirectory !-No description provided
themeString "github.com/joshed-io/reveal-hugo"The Theme to use
Example
dagger -m github.com/stuttgart-things/dagger/hugo@a48b3a3fd70013e7d851a94d93c5a5ee0b512577 call \
 export-static-content --site-dir DIR_PATH
func (m *MyModule) Example(siteDir *dagger.Directory) *dagger.Directory  {
	return dag.
			Hugo().
			ExportStaticContent(siteDir)
}
@function
def example(site_dir: dagger.Directory) -> dagger.Directory:
	return (
		dag.hugo()
		.export_static_content(site_dir)
	)
@func()
example(siteDir: Directory): Directory {
	return dag
		.hugo()
		.exportStaticContent(siteDir)
}

buildAndExport() 🔗

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@a48b3a3fd70013e7d851a94d93c5a5ee0b512577 call \
 build-and-export --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().
			BuildAndExport(name, config, content)
}
@function
def example(name: str, config: dagger.File, content: dagger.Directory) -> dagger.Directory:
	return (
		dag.hugo()
		.build_and_export(name, config, content)
	)
@func()
example(name: string, config: File, content: Directory): Directory {
	return dag
		.hugo()
		.buildAndExport(name, config, content)
}

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@a48b3a3fd70013e7d851a94d93c5a5ee0b512577 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)
}