mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
resources: Add data context to the key in ExecuteAsTemplate
Fixes #7046
This commit is contained in:
1 file changed
+1
-1
@@ -48,7 +48,7 @@ type executeAsTemplateTransform struct {
|
||||
}
|
||||
|
||||
func (t *executeAsTemplateTransform) Key() internal.ResourceTransformationKey {
|
||||
return internal.NewResourceTransformationKey("execute-as-template", t.targetPath)
|
||||
return internal.NewResourceTransformationKey("execute-as-template", t.targetPath, t.data)
|
||||
}
|
||||
|
||||
func (t *executeAsTemplateTransform) Transform(ctx *resources.ResourceTransformationCtx) error {
|
||||
|
||||
Reference in new issue
Block a user