mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 22:21:07 +03:00
Merge commit '2658a71e1b
'
This commit is contained in:
commit
e8cc785a58
8 changed files with 150 additions and 28 deletions
|
@ -171,7 +171,7 @@ Override the cache key by setting a `key` in the options map. Use this approach
|
|||
```go-html-template
|
||||
{{ $url := "https://example.org/images/a.jpg" }}
|
||||
{{ $cacheKey := print $url (now.Format "2006-01-02") }}
|
||||
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
|
||||
{{ $resource := resources.GetRemote $url (dict "key" $cacheKey) }}
|
||||
```
|
||||
|
||||
[configure file caches]: /getting-started/configuration/#configure-file-caches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue