Fix resources.ExecuteAsTemplate argument order (#1394)

Co-authored-by: kjirou <sorenariblog@gmail.com>
This commit is contained in:
Joe Mooring 2021-03-31 15:27:25 -07:00 committed by GitHub
parent 97e2c2abb4
commit 17fae284c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ draft: false
In order to use Hugo Pipes function on an asset file containing Go Template magic the function `resources.ExecuteAsTemplate` must be used. In order to use Hugo Pipes function on an asset file containing Go Template magic the function `resources.ExecuteAsTemplate` must be used.
The function takes three arguments, the resource object, the resource target path and the template context. The function takes three arguments: the resource target path, the template context, and the resource object.
```go-html-template ```go-html-template
// assets/sass/template.scss // assets/sass/template.scss