HUGO
Menu
GitHub 89791 stars Mastodon

resources.ByType

resources.ByType MEDIATYPE

Returns a collection of global resources of the given media type, or nil if none found.

resources.Concat

resources.Concat TARGETPATH [RESOURCE...]

Returns a concatenated slice of resources.

resources.Copy

resources.Copy TARGETPATH RESOURCE

Returns a copy of the given resource at the target path.

resources.ExecuteAsTemplate

resources.ExecuteAsTemplate TARGETPATH CONTEXT RESOURCE

Returns a resource created from a Go template, parsed and executed with the given context.

resources.Fingerprint

resources.Fingerprint [ALGORITHM] RESOURCE

Returns a fingerprinted resource, created by cryptographically hashing the content of the given resource.

resources.FromString

resources.FromString TARGETPATH STRING

Returns a resource created from a string.

resources.Get

resources.Get PATH

Returns a global resource from the given path, or nil if none found.

resources.GetMatch

resources.GetMatch PATTERN

Returns the first global resource from paths matching the given glob pattern, or nil if none found.

resources.GetRemote

resources.GetRemote URL [OPTIONS]

Returns a remote resource from the given URL, or nil if none found.

resources.Match

resources.Match PATTERN

Returns a collection of global resources from paths matching the given glob pattern, or nil if none found.

resources.Minify

resources.Minify RESOURCE

Returns a minified version of the given resource.

resources.PostProcess

resources.PostProcess RESOURCE

Returns a resource that is processed after the build.

resources.Publish

resources.Publish RESOURCE

Returns the given resource after publishing it.