hugo/resources
Bjørn Erik Pedersen e58a540895 resources: Create a common ResourceFinder interface
And make both .Resources and resources implement it.

This gets us 2 new methods/functions, so you can now also do:

* .Resources.Get
* resources.ByType

Note that GetRemote is not covered by this interface, as that is only available as a global template function.

Fixes #8653
2022-04-05 18:00:44 +02:00
..
images resources/images: Require width and height for Crop, Fill, and Fit 2022-03-20 19:44:41 +01:00
internal all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
jsconfig all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
page Localize all the GroupBy*Date methods 2022-04-05 16:11:11 +02:00
postpub all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource resources: Create a common ResourceFinder interface 2022-04-05 18:00:44 +02:00
resource_factories resources: Create a common ResourceFinder interface 2022-04-05 18:00:44 +02:00
resource_transformers all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
testdata Add custom font support to images.Text 2021-12-07 16:53:02 +01:00
errorResource.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
image.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
image_cache.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
image_extended_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
image_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
post_publish.go Add basic "post resource publish support" 2020-04-07 21:59:20 +02:00
resource.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
resource_cache.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_cache_test.go Improve the server assets cache invalidation logic 2019-08-13 18:09:46 +02:00
resource_metadata.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_metadata_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_spec.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resource_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
testhelpers_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
transform.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
transform_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00