diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-18 11:21:27 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-26 15:00:44 +0200 |
commit | f9978ed16476ca6d233a89669c62c798cdf9db9d (patch) | |
tree | 02edb31008b997a3e77055060a34971fe9e8c5a4 /resources/resource_metadata_test.go | |
parent | 58d4c0a8be8beefbd7437b17bf7a9a381164d09b (diff) | |
download | hugo-f9978ed16476ca6d233a89669c62c798cdf9db9d.tar.gz hugo-f9978ed16476ca6d233a89669c62c798cdf9db9d.zip |
Image resource refactor
This commit pulls most of the image related logic into its own package, to make it easier to reason about and extend.
This is also a rewrite of the transformation logic used in Hugo Pipes, mostly to allow constructs like the one below:
{{ ($myimg | fingerprint ).Width }}
Fixes #5903
Fixes #6234
Fixes #6266
Diffstat (limited to 'resources/resource_metadata_test.go')
-rw-r--r-- | resources/resource_metadata_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/resource_metadata_test.go b/resources/resource_metadata_test.go index bededcd1b..c79a50021 100644 --- a/resources/resource_metadata_test.go +++ b/resources/resource_metadata_test.go @@ -24,7 +24,7 @@ import ( func TestAssignMetadata(t *testing.T) { c := qt.New(t) - spec := newTestResourceSpec(c) + spec := newTestResourceSpec(specDescriptor{c: c}) var foo1, foo2, foo3, logo1, logo2, logo3 resource.Resource var resources resource.Resources |