hugo/resources
Bjørn Erik Pedersen 2dbdf38a54 resources: Add key to reources.GetRemote options map
If set, `key` will be used as the only cache key element for the resource.

The default behaviour is to calculate the key based on the URL and all the options.

This means that you can now do:

```
{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
```

Fixes #9755
2022-04-13 09:18:17 +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
page Make string sorting (e.g. ByTitle, ByLinkTitle and ByParam) language aware 2022-04-12 13:24:16 +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: Add key to reources.GetRemote options map 2022-04-13 09:18:17 +02:00
resource_transformers Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
testdata
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
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
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
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 Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
transform.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00
transform_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00