mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-08 14:04:38 -04:00
Clarify resources.GetRemote 404 handling
This commit is contained in:
parent
4312d49c91
commit
efbee0bff8
@ -102,6 +102,10 @@ The [`Err`] method on a resource returned by the `resources.GetRemote` function
|
||||
|
||||
[`Err`]: /methods/resource/err/
|
||||
|
||||
{{% note %}}
|
||||
Hugo does not classify an HTTP response with status code 404 as an error. In this case the function returns nil.
|
||||
{{% /note %}}
|
||||
|
||||
```go-html-template
|
||||
{{ $url := "https://broken-example.org/images/a.jpg" }}
|
||||
{{ with resources.GetRemote $url }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user