mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
resources.GetRemote: minor improvement (#2002)
This commit is contained in:
committed by
GitHub
parent
d54185beff
commit
bcbc519bb9
@@ -105,7 +105,7 @@ Note that if you do not handle `.Err` yourself, Hugo will fail the build the fir
|
||||
|
||||
### Remote Options
|
||||
|
||||
When fetching a remote `Resource`, `resources.GetRemote` takes an optional options map as the last argument, e.g.:
|
||||
When fetching a remote `Resource`, `resources.GetRemote` takes an optional options map as the second argument, e.g.:
|
||||
|
||||
```go-html-template
|
||||
{{ $resource := resources.GetRemote "https://example.org/api" (dict "headers" (dict "Authorization" "Bearer abcd")) }}
|
||||
|
||||
Reference in New Issue
Block a user