hugo/common/maps
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
..
maps.go resources: Add key to reources.GetRemote options map 2022-04-13 09:18:17 +02:00
maps_test.go resources: Add key to reources.GetRemote options map 2022-04-13 09:18:17 +02:00
params.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
params_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
scratch.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
scratch_test.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00