Merge commit 'de0df119b504a91c9e1f442b07954f366ffb2932'

This commit is contained in:
Bjørn Erik Pedersen
2024-11-13 11:07:57 +01:00
89 changed files with 745 additions and 856 deletions

View File

@@ -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 }}