hugo/common
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
..
collections all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
constants Allow getJSON errors to be ignored 2020-10-22 09:09:29 +02:00
herrors all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
hexec all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
hreflect Fix typo 2022-03-22 00:39:33 -06:00
htime all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
hugio Add Markdown diagrams and render hooks for code blocks 2022-02-24 18:59:50 +01:00
hugo releaser: Prepare repository for 0.97.0-DEV 2022-03-26 09:53:13 +00:00
loggers all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
maps resources: Add key to reources.GetRemote options map 2022-04-13 09:18:17 +02:00
math all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
para para: Skip para test when not on CI 2020-12-23 19:47:20 +01:00
paths Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
terminal Fix ANSI character output regression on Windows 2018-11-02 09:09:02 +01:00
text all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
types resources: Create a common ResourceFinder interface 2022-04-05 18:00:44 +02:00
urls all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00