ultimate-jekyll-manager 0.0.251 → 0.0.253
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` |
|
|
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` |
|
|
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 |
|
|
@@ -208,9 +208,6 @@ async function sendUserSignupMetadata(user, webManager) {
|
|
|
208
208
|
|
|
209
209
|
// Build the payload
|
|
210
210
|
const payload = {
|
|
211
|
-
// Legacy support (can be removed once all servers are updated)
|
|
212
|
-
affiliateCode: attribution.affiliate?.code || '',
|
|
213
|
-
|
|
214
211
|
// New structure
|
|
215
212
|
attribution: attribution,
|
|
216
213
|
context: webManager.utilities().getContext(),
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
Remove with {% uj_icon "crown", "fa-sm text-success" %} <span class="text-success">Premium</span>
|
|
238
238
|
</a>
|
|
239
239
|
<!-- Mobile Sidebar Ad -->
|
|
240
|
-
{% include /modules/adunits/adsense.html type="in-article" %}
|
|
240
|
+
{% include /modules/adunits/adsense.html type="in-article" vert-size="rectangle" %}
|
|
241
241
|
{% endif %}
|
|
242
242
|
</div>
|
|
243
243
|
{% endif %}
|
|
@@ -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
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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.
|
|
3
|
+
"version": "0.0.253",
|
|
4
4
|
"description": "Ultimate Jekyll dependency manager",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"dotenv": "^17.3.1",
|
|
78
78
|
"fast-xml-parser": "^5.3.6",
|
|
79
79
|
"fs-jetpack": "^5.1.0",
|
|
80
|
-
"glob": "^13.0.
|
|
80
|
+
"glob": "^13.0.4",
|
|
81
81
|
"gulp-clean-css": "^4.3.0",
|
|
82
82
|
"gulp-filter": "^9.0.1",
|
|
83
83
|
"gulp-postcss": "^10.0.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"json5": "^2.2.3",
|
|
92
92
|
"libsodium-wrappers": "^0.8.2",
|
|
93
93
|
"lodash": "^4.17.23",
|
|
94
|
-
"minimatch": "^10.2.
|
|
94
|
+
"minimatch": "^10.2.1",
|
|
95
95
|
"node-powertools": "^2.3.2",
|
|
96
96
|
"npm-api": "^1.0.1",
|
|
97
97
|
"postcss": "^8.5.6",
|