ultimate-jekyll-manager 0.0.250 → 0.0.252

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/CLAUDE.md CHANGED
@@ -698,7 +698,7 @@ The `vert-size` parameter accepts preset names or raw pixel values. Presets cons
698
698
 
699
699
  | Preset | Max Height | Typical Use |
700
700
  |--------|-----------|-------------|
701
- | `banner` | 90px | Horizontal banner ads |
701
+ | `banner` | 150px | Horizontal banner ads |
702
702
  | `leaderboard` | 90px | Wide horizontal ads (alias for banner) |
703
703
  | `rectangle` | 250px | Medium rectangle, in-content ads |
704
704
  | `large-rectangle` | 600px | Large rectangle, sidebar ads |
package/README.md CHANGED
@@ -348,7 +348,7 @@ UJ provides ad unit includes that display Google AdSense ads with automatic fall
348
348
 
349
349
  | Preset | Max Height | Typical Use |
350
350
  |--------|-----------|-------------|
351
- | `banner` | 90px | Horizontal banner ads |
351
+ | `banner` | 150px | Horizontal banner ads |
352
352
  | `leaderboard` | 90px | Wide horizontal ads |
353
353
  | `rectangle` | 250px | Medium rectangle, in-content ads |
354
354
  | `large-rectangle` | 600px | Large rectangle, sidebar ads |
@@ -213,7 +213,7 @@ const createCustomAd = ($vertUnit, config) => {
213
213
 
214
214
  // Size presets (name → max-height in pixels)
215
215
  const SIZE_PRESETS = {
216
- banner: 90,
216
+ banner: 150,
217
217
  leaderboard: 90,
218
218
  rectangle: 250,
219
219
  'large-rectangle': 600,
@@ -154,6 +154,8 @@ async function imagemin(complete) {
154
154
  withMetadata: false,
155
155
  withoutEnlargement: false,
156
156
  skipOnEnlargement: false,
157
+ errorOnUnusedImage: false,
158
+ passThroughUnused: true,
157
159
  }))
158
160
  .pipe(dest(output))
159
161
  .on('data', (file) => {
@@ -306,6 +308,9 @@ async function determineFilesToProcess(files, meta, githubCache, stats) {
306
308
  const filesToProcess = [];
307
309
  const validCachePaths = new Set();
308
310
 
311
+ // File extensions that get responsive processing (multiple sizes + webp)
312
+ const RESPONSIVE_EXTENSIONS = new Set(['jpg', 'jpeg', 'png']);
313
+
309
314
  for (const file of files) {
310
315
  const relativePath = path.relative(rootPathProject, file);
311
316
  const hash = githubCache ? githubCache.calculateHash(file) : null;
@@ -315,16 +320,22 @@ async function determineFilesToProcess(files, meta, githubCache, stats) {
315
320
  const dirName = path.dirname(relativePath).replace(/^src\/assets\/images\/?/, '');
316
321
  const originalExt = path.extname(file).slice(1); // Remove the dot
317
322
 
323
+ // Only generate responsive outputs for supported formats
324
+ // Other formats (svg, gif, webp) pass through as-is
318
325
  const outputs = [];
319
- PICTURE_SIZES.forEach(size => {
320
- size.formats.forEach(format => {
321
- if (format === 'original') {
322
- outputs.push(`${baseName}${size.suffix}.${originalExt}`);
323
- } else if (format === 'webp') {
324
- outputs.push(`${baseName}${size.suffix}.webp`);
325
- }
326
+ if (RESPONSIVE_EXTENSIONS.has(originalExt.toLowerCase())) {
327
+ PICTURE_SIZES.forEach(size => {
328
+ size.formats.forEach(format => {
329
+ if (format === 'original') {
330
+ outputs.push(`${baseName}${size.suffix}.${originalExt}`);
331
+ } else if (format === 'webp') {
332
+ outputs.push(`${baseName}${size.suffix}.webp`);
333
+ }
334
+ });
326
335
  });
327
- });
336
+ } else {
337
+ outputs.push(`${baseName}.${originalExt}`);
338
+ }
328
339
 
329
340
  // Track as valid cache files
330
341
  outputs.forEach(name => validCachePaths.add(path.join('images', dirName, name)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.250",
3
+ "version": "0.0.252",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {