hugo/resources/resource_factories
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
..
bundler all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
create resources: Add key to reources.GetRemote options map 2022-04-13 09:18:17 +02:00