@thulite/images 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @thulite/images
|
|
2
2
|
|
|
3
|
+
## 3.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#27](https://github.com/thuliteio/images/pull/27) [`7914bea`](https://github.com/thuliteio/images/commit/7914beae806d9478a9e4d7d06ee097409984281c) Thanks [@toby-marks](https://github.com/toby-marks)! - Correcting for errors introduced by Hugo 0.141
|
|
8
|
+
|
|
3
9
|
## 3.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -104,14 +104,14 @@ partial template, after the render hook has captured the resource.
|
|
|
104
104
|
{{- /* Get image resource. */}}
|
|
105
105
|
{{- $r := "" }}
|
|
106
106
|
{{- if $u.IsAbs }}
|
|
107
|
-
{{- with resources.GetRemote $u.String }}
|
|
107
|
+
{{- with try (resources.GetRemote $u.String) }}
|
|
108
108
|
{{- with .Err }}
|
|
109
109
|
{{- if eq $errorLevel "warning" }}
|
|
110
|
-
{{- warnf "%s. See %s" . $contentPath }}
|
|
110
|
+
{{- warnf "%s. See %s" .Err $contentPath }}
|
|
111
111
|
{{- else if eq $errorLevel "error" }}
|
|
112
|
-
{{- errorf "%s. See %s" . $contentPath }}
|
|
112
|
+
{{- errorf "%s. See %s" .Err $contentPath }}
|
|
113
113
|
{{- end }}
|
|
114
|
-
{{- else }}
|
|
114
|
+
{{- else with .Value }}
|
|
115
115
|
{{- /* Destination is a remote resource. */}}
|
|
116
116
|
{{- $r = . }}
|
|
117
117
|
{{- end }}
|
|
@@ -257,10 +257,10 @@ Add this CSS to your site to remove small gaps between adjacent elements:
|
|
|
257
257
|
{{- /* Get image resource. */}}
|
|
258
258
|
{{- $r := "" }}
|
|
259
259
|
{{- if $u.IsAbs }}
|
|
260
|
-
{{- with resources.GetRemote $u.String }}
|
|
260
|
+
{{- with try (resources.GetRemote $u.String) }}
|
|
261
261
|
{{- with .Err }}
|
|
262
|
-
{{- errorf "%s. See %s" . $.contentPath }}
|
|
263
|
-
{{- else }}
|
|
262
|
+
{{- errorf "%s. See %s" .Err $.contentPath }}
|
|
263
|
+
{{- else with .Value }}
|
|
264
264
|
{{- /* Destination is a remote resource. */}}
|
|
265
265
|
{{- $r = . }}
|
|
266
266
|
{{- end }}
|
|
@@ -251,12 +251,12 @@ Add this CSS to your site to remove small gaps between adjacent elements:
|
|
|
251
251
|
{{- /* Get image resource. */}}
|
|
252
252
|
{{- $r := "" }}
|
|
253
253
|
{{- if $u.IsAbs }}
|
|
254
|
-
{{- with resources.GetRemote $u.String }}
|
|
254
|
+
{{- with try (resources.GetRemote $u.String) }}
|
|
255
255
|
{{- with .Err }}
|
|
256
|
-
{{- errorf "%s. See %s" . $.contentPath }}
|
|
257
|
-
{{- else }}
|
|
256
|
+
{{- errorf "%s. See %s" .Err $.contentPath }}
|
|
257
|
+
{{- else with .Value }}
|
|
258
258
|
{{- /* Destination is a remote resource. */}}
|
|
259
|
-
{{- $r = . }}
|
|
259
|
+
{{- $r = .Value }}
|
|
260
260
|
{{- end }}
|
|
261
261
|
{{- else }}
|
|
262
262
|
{{- errorf $msg }}
|
|
@@ -253,10 +253,10 @@ Add this CSS to your site to remove small gaps between adjacent elements:
|
|
|
253
253
|
{{- /* Get image resource. */}}
|
|
254
254
|
{{- $r := "" }}
|
|
255
255
|
{{- if $u.IsAbs }}
|
|
256
|
-
{{- with resources.GetRemote $u.String }}
|
|
256
|
+
{{- with try (resources.GetRemote $u.String) }}
|
|
257
257
|
{{- with .Err }}
|
|
258
|
-
{{- errorf "%s. See %s" . $.contentPath }}
|
|
259
|
-
{{- else }}
|
|
258
|
+
{{- errorf "%s. See %s" .Err $.contentPath }}
|
|
259
|
+
{{- else with .Value }}
|
|
260
260
|
{{- /* Destination is a remote resource. */}}
|
|
261
261
|
{{- $r = . }}
|
|
262
262
|
{{- end }}
|