ultimate-jekyll-manager 0.0.135 → 0.0.136
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/TODO.md
CHANGED
|
@@ -98,10 +98,6 @@ REMAKE main/misc/embed-manager.html in UJ
|
|
|
98
98
|
REMAKE the dashboard one in UJ
|
|
99
99
|
FINISH redirec.js in UJ
|
|
100
100
|
|
|
101
|
-
# Update git remote url
|
|
102
|
-
* Check git remote get-url origin
|
|
103
|
-
* Update to correct one if necessary (imagemin wont work unless tis is accurate)
|
|
104
|
-
|
|
105
101
|
# Fix notifications
|
|
106
102
|
* UJ 2.0 for a while was making a DUPLICATE notifaction in users/{uid}/notifications/{token} AND in notifications/{token}
|
|
107
103
|
* We can SAFELY DELETE the users/{uid}/notifications collection
|
|
@@ -40,7 +40,9 @@ function insertBlogPostAds() {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
// Find valid positions to insert ads (every 4 paragraphs)
|
|
43
|
+
// But ensure the last ad isn't too close to the end of the article
|
|
43
44
|
const positions = [];
|
|
45
|
+
const minParagraphsAfterLastAd = 2; // Ensure at least 2 paragraphs after the last ad
|
|
44
46
|
|
|
45
47
|
for (let i = 0; i < $paragraphs.length; i++) {
|
|
46
48
|
// Only consider every 4th paragraph
|
|
@@ -48,6 +50,12 @@ function insertBlogPostAds() {
|
|
|
48
50
|
continue;
|
|
49
51
|
}
|
|
50
52
|
|
|
53
|
+
// Skip if this position is too close to the end of the article
|
|
54
|
+
const paragraphsRemaining = $paragraphs.length - 1 - i;
|
|
55
|
+
if (paragraphsRemaining < minParagraphsAfterLastAd) {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
const $p = $paragraphs[i];
|
|
52
60
|
const $prevSibling = $p.previousElementSibling;
|
|
53
61
|
|
|
@@ -101,6 +109,7 @@ function insertBlogPostAds() {
|
|
|
101
109
|
|
|
102
110
|
// Set data-lazy attribute
|
|
103
111
|
$adContainer.setAttribute('data-lazy', `@script ${JSON.stringify(lazyConfig)}`);
|
|
112
|
+
$adContainer.classList.add('my-4');
|
|
104
113
|
|
|
105
114
|
// Insert after the target paragraph
|
|
106
115
|
targetParagraph.parentNode.insertBefore($adContainer, targetParagraph.nextSibling);
|
package/firebase-debug.log
CHANGED
|
@@ -2396,3 +2396,31 @@
|
|
|
2396
2396
|
[debug] [2025-12-04T08:02:22.587Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2397
2397
|
[debug] [2025-12-04T08:02:22.588Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2398
2398
|
[debug] [2025-12-04T08:02:22.588Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2399
|
+
[debug] [2025-12-04T19:09:21.046Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2400
|
+
[debug] [2025-12-04T19:09:21.045Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2401
|
+
[debug] [2025-12-04T19:09:21.047Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2402
|
+
[debug] [2025-12-04T19:09:21.047Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2403
|
+
[debug] [2025-12-04T19:09:21.048Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2404
|
+
[debug] [2025-12-04T19:09:21.057Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2405
|
+
[debug] [2025-12-04T19:09:21.057Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2406
|
+
[debug] [2025-12-04T19:09:21.047Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2407
|
+
[debug] [2025-12-04T19:09:21.047Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2408
|
+
[debug] [2025-12-04T19:09:21.048Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2409
|
+
[debug] [2025-12-04T19:09:21.056Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2410
|
+
[debug] [2025-12-04T19:09:21.057Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2411
|
+
[debug] [2025-12-04T19:09:21.106Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2412
|
+
[debug] [2025-12-04T19:09:21.108Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2413
|
+
[debug] [2025-12-04T19:09:21.106Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2414
|
+
[debug] [2025-12-04T19:09:21.107Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2415
|
+
[debug] [2025-12-04T19:09:21.107Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2416
|
+
[debug] [2025-12-04T19:09:21.108Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2417
|
+
[debug] [2025-12-04T19:09:21.108Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2418
|
+
[debug] [2025-12-04T19:09:21.109Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2419
|
+
[debug] [2025-12-04T19:09:21.109Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2420
|
+
[debug] [2025-12-04T19:09:21.109Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2421
|
+
[debug] [2025-12-04T19:09:21.109Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2422
|
+
[debug] [2025-12-04T19:09:21.109Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2423
|
+
[debug] [2025-12-04T19:09:21.111Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2424
|
+
[debug] [2025-12-04T19:09:21.111Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|
|
2425
|
+
[debug] [2025-12-04T19:09:21.111Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
|
|
2426
|
+
[debug] [2025-12-04T19:09:21.111Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
|