@thulite/images 3.3.2 → 3.3.4
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,17 @@
|
|
|
1
1
|
# @thulite/images
|
|
2
2
|
|
|
3
|
+
## 3.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#39](https://github.com/thuliteio/images/pull/39) [`08af9fe`](https://github.com/thuliteio/images/commit/08af9fe86897356034d281ae84f586a57e359eb2) Thanks [@h-enk](https://github.com/h-enk)! - Bump dependencies to their latest versions
|
|
8
|
+
|
|
9
|
+
## 3.3.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#36](https://github.com/thuliteio/images/pull/36) [`938b5e6`](https://github.com/thuliteio/images/commit/938b5e660ae27c749d16d5dae289bb64c2d73599) Thanks [@danielfdickinson](https://github.com/danielfdickinson)! - Rebase fix svg images in markdown
|
|
14
|
+
|
|
3
15
|
## 3.3.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -152,10 +152,11 @@ partial template, after the render hook has captured the resource.
|
|
|
152
152
|
{{- end }}
|
|
153
153
|
|
|
154
154
|
{{/* Convert to webp. */}}
|
|
155
|
-
{{- if
|
|
155
|
+
{{- if not (in (slice "gif" "svg") $r.MediaType.SubType) }}
|
|
156
156
|
{{- $r = $r.Resize (printf "%dx%d webp" $r.Width $r.Height) }}
|
|
157
157
|
{{- end }}
|
|
158
158
|
|
|
159
|
+
{{- if ne $r.MediaType.SubType "svg" }}
|
|
159
160
|
{{- /* Render image element. */ -}}
|
|
160
161
|
<img
|
|
161
162
|
src="{{ $r.RelPermalink }}"
|
|
@@ -168,5 +169,17 @@ partial template, after the render hook has captured the resource.
|
|
|
168
169
|
{{- with .Title -}}title="{{ . }}"{{- end }}
|
|
169
170
|
id="{{ $id }}"
|
|
170
171
|
>
|
|
172
|
+
{{- else }}
|
|
173
|
+
<img
|
|
174
|
+
src="{{ $r.RelPermalink }}"
|
|
175
|
+
decoding="{{ site.Params.thulite_images.defaults.decoding }}"
|
|
176
|
+
fetchpriority="{{ site.Params.thulite_images.defaults.fetchpriority }}"
|
|
177
|
+
loading="{{ site.Params.thulite_images.defaults.loading }}"
|
|
178
|
+
alt="{{ .PlainText }}"
|
|
179
|
+
{{- with .Title -}}title="{{ . }}"{{- end }}
|
|
180
|
+
id="{{ $id }}"
|
|
181
|
+
class="markdown-svg"
|
|
182
|
+
>
|
|
183
|
+
{{- end }}
|
|
171
184
|
|
|
172
185
|
{{- /**/ -}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thulite/images",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.4",
|
|
4
4
|
"description": "Thulite images",
|
|
5
5
|
"author": "Thulite",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"format": "prettier **/** -w -c"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@changesets/changelog-github": "^0.5.
|
|
16
|
-
"@changesets/cli": "^2.
|
|
17
|
-
"prettier": "^3.
|
|
15
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
16
|
+
"@changesets/cli": "^2.29.8",
|
|
17
|
+
"prettier": "^3.8.1"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=20.11.0"
|