Files
hugo/hugolib
Bjørn Erik Pedersen 22ef5da20d Add resources.GetRemote
In Hugo 0.89 we added remote support to `resources.Get`.

In hindsight that was not a great idea, as a poll from many Hugo users showed. See Issue #9285 for more details.

After this commit `resources.Get` only supports local resource lookups. If you want to support both, you need to use a construct similar to:

Also improve some option case handling.

```
{{ resource := "" }}
{{ if (urls.Parse $url).IsAbs }}
{{ $resource = resources.GetRemote $url }}
{{ else }}
{{ $resource = resources.Get $url }}
{{ end }}
```

Fixes #9285
Fixes #9296
2021-12-17 09:33:51 +01:00
..
2019-08-26 15:00:44 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-06-07 19:11:03 +02:00
2020-12-16 12:11:32 +01:00
2021-07-10 11:13:41 +02:00
2021-07-28 11:51:13 +02:00
2021-07-15 17:14:26 +02:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-06-14 17:00:32 +02:00
2021-07-30 21:07:52 +02:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-16 12:11:32 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2020-12-03 13:12:58 +01:00
2021-10-16 15:22:03 +02:00
2021-05-04 17:59:04 +02:00
2020-12-03 13:12:58 +01:00
2021-12-17 09:33:51 +01:00
2021-06-14 17:00:32 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2019-08-08 20:13:39 +02:00
2021-06-14 17:00:32 +02:00
2020-12-03 13:12:58 +01:00
2020-12-16 12:11:32 +01:00
2019-08-08 20:13:39 +02:00