@tideworthy/tidysites 0.1.9 → 0.1.10
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/README.md +2 -1
- package/bin/tidysites.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,7 +61,8 @@ shows in `status`.
|
|
|
61
61
|
|
|
62
62
|
Images: an image field, a hero's image or a Columns image slot takes
|
|
63
63
|
`{ "$media": { "url": "https://...", "alt": "what it shows" } }` and the
|
|
64
|
-
push fetches the file into the website's library
|
|
64
|
+
push fetches the file into the website's library; a file the library already
|
|
65
|
+
holds (the same bytes) is reused, not added again. An image already in the
|
|
65
66
|
library keeps the value the pull gave it.
|
|
66
67
|
|
|
67
68
|
A picture in custom HTML is written as a plain `<img src="{{ s.image.url }}" alt="{{ s.image.alt }}">`: a stored picture gets its resized variants (`srcset`, and a `sizes` hint when none is written) on the way out, so a phone downloads a phone-sized file; write your own `sizes` when the picture is narrower than half the screen on a laptop, and your own `srcset` to take over entirely. Pictures in the first section load at once and the first of them asks to go first; pictures below load when they are needed, unless the markup says `loading="eager"`.
|
package/bin/tidysites.mjs
CHANGED
|
@@ -338,7 +338,7 @@ async function push(ctx) {
|
|
|
338
338
|
}
|
|
339
339
|
process.exit(1);
|
|
340
340
|
}
|
|
341
|
-
say(`Pushed: ${r.content.created} created, ${r.content.updated} updated${r.images ? `, ${r.images} image${r.images === 1 ? '' : 's'} added` : ''}${r.removed ? `, ${r.removed} removed` : ''}.`);
|
|
341
|
+
say(`Pushed: ${r.content.created} created, ${r.content.updated} updated${r.images ? `, ${r.images} image${r.images === 1 ? '' : 's'} added` : ''}${r.images_reused ? `, ${r.images_reused} already in the library` : ''}${r.removed ? `, ${r.removed} removed` : ''}.`);
|
|
342
342
|
if (r.missing?.length) say(`Not found to remove: ${r.missing.map((m) => `${m.collection}/${m.slug}`).join(', ')}`);
|
|
343
343
|
}
|
|
344
344
|
for (const name of menus) {
|
package/package.json
CHANGED