1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-03-27 12:53:06 +00:00
hugo/tpl/resources
Bjørn Erik Pedersen 9202117ba0 resources: Add more details to .Err
This commit adds a .Data object (a map with `Body`, `StatusCode` etc.) to the .Err returned from `resources.GetRemote`, which means you can now do:

```
{{ with .Err }}
{{ range $k, $v := .Data }}
{{ end }}
{{ end }}
```

Fixes 
2022-03-25 16:40:36 +01:00
..
init.go
resources.go resources: Add more details to .Err 2022-03-25 16:40:36 +01:00