diff options
Diffstat (limited to 'tpl/resources')
-rw-r--r-- | tpl/resources/resources.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go index a1055632c..90fb58b4b 100644 --- a/tpl/resources/resources.go +++ b/tpl/resources/resources.go @@ -19,6 +19,8 @@ import ( "fmt" "path/filepath" + "github.com/gohugoio/hugo/resources/postpub" + "github.com/gohugoio/hugo/common/maps" "github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/resources" @@ -273,6 +275,10 @@ func (ns *Namespace) PostCSS(args ...interface{}) (resource.Resource, error) { return ns.postcssClient.Process(r, options) } +func (ns *Namespace) PostProcess(r resource.Resource) (postpub.PostPublishedResource, error) { + return ns.deps.ResourceSpec.PostProcess(r) +} + // We allow string or a map as the first argument in some cases. func (ns *Namespace) resolveIfFirstArgIsString(args []interface{}) (resources.ResourceTransformer, string, bool) { if len(args) != 2 { |