ultimate-jekyll-manager 0.0.127 → 0.0.129

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.
@@ -103,10 +103,10 @@ function performSearch(query, $blogPosts, $searchResults) {
103
103
 
104
104
  $blogPosts.forEach(post => {
105
105
  const title = post.dataset.title?.toLowerCase() || '';
106
- const excerpt = post.dataset.excerpt?.toLowerCase() || '';
106
+ const description = post.dataset.description?.toLowerCase() || '';
107
107
  const tags = post.dataset.tags?.toLowerCase() || '';
108
108
 
109
- if (title.includes(query) || excerpt.includes(query) || tags.includes(query)) {
109
+ if (title.includes(query) || description.includes(query) || tags.includes(query)) {
110
110
  post.classList.remove('d-none');
111
111
  matchCount++;
112
112
  } else {
package/dist/cli.js CHANGED
@@ -8,6 +8,7 @@ const ALIASES = {
8
8
  clean: ['-c', '--clean'],
9
9
  'cloudflare-purge': ['-cf', 'purge', '--cloudflare-purge'],
10
10
  install: ['-i', 'i', '--install'],
11
+ repo: ['-r', '--repo'],
11
12
  setup: ['-s', '--setup'],
12
13
  version: ['-v', '--version'],
13
14
  // Tasks
@@ -272,11 +272,11 @@ async function fixPostsLayout() {
272
272
  modified = true;
273
273
  }
274
274
 
275
- // 2. Change excerpt to description
275
+ // 2. Change excerpt to description (handles both root level and nested under post:)
276
276
  if (frontmatter.includes('excerpt:')) {
277
277
  frontmatter = frontmatter.replace(
278
- /^excerpt:/m,
279
- 'description:'
278
+ /^(\s*)excerpt:/gm,
279
+ '$1description:'
280
280
  );
281
281
  modified = true;
282
282
  }
@@ -284,7 +284,7 @@ async function fixPostsLayout() {
284
284
  // 3. Remove affiliate-search-term line
285
285
  if (frontmatter.includes('affiliate-search-term:')) {
286
286
  frontmatter = frontmatter.replace(
287
- /^affiliate-search-term:.*\r?\n/m,
287
+ /^(\s*)affiliate-search-term:.*\r?\n/m,
288
288
  ''
289
289
  );
290
290
  modified = true;
@@ -0,0 +1,41 @@
1
+ // Libraries
2
+ const Manager = new (require('../build.js'));
3
+ const logger = Manager.logger('repo');
4
+ const { execute } = require('node-powertools');
5
+
6
+ module.exports = async function () {
7
+ // Log
8
+ logger.log(`Opening GitHub repository...`);
9
+
10
+ try {
11
+ // Get the remote URL
12
+ const result = await execute('git remote get-url origin', { log: false });
13
+ let url = result.stdout.trim();
14
+
15
+ if (!url) {
16
+ throw new Error('No git remote origin found');
17
+ }
18
+
19
+ // Convert SSH URL to HTTPS URL if needed
20
+ // git@github.com:user/repo.git -> https://github.com/user/repo
21
+ if (url.startsWith('git@')) {
22
+ url = url
23
+ .replace('git@', 'https://')
24
+ .replace(':', '/')
25
+ .replace(/\.git$/, '');
26
+ }
27
+
28
+ // Remove .git suffix if present
29
+ url = url.replace(/\.git$/, '');
30
+
31
+ logger.log(`Repository URL: ${url}`);
32
+
33
+ // Open the URL in the default browser
34
+ await execute(`open "${url}"`, { log: false });
35
+
36
+ logger.log(logger.format.green('✓ Opened repository in browser'));
37
+ } catch (e) {
38
+ logger.error('Failed to open repository:', e.message);
39
+ throw e;
40
+ }
41
+ };
@@ -1626,3 +1626,31 @@
1626
1626
  [debug] [2025-12-03T03:49:02.916Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1627
1627
  [debug] [2025-12-03T03:49:02.916Z] > 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"]
1628
1628
  [debug] [2025-12-03T03:49:02.916Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1629
+ [debug] [2025-12-03T05:02:35.041Z] > 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"]
1630
+ [debug] [2025-12-03T05:02:35.042Z] > 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"]
1631
+ [debug] [2025-12-03T05:02:35.043Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1632
+ [debug] [2025-12-03T05:02:35.044Z] > 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"]
1633
+ [debug] [2025-12-03T05:02:35.044Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1634
+ [debug] [2025-12-03T05:02:35.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"]
1635
+ [debug] [2025-12-03T05:02:35.056Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1636
+ [debug] [2025-12-03T05:02:35.044Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1637
+ [debug] [2025-12-03T05:02:35.044Z] > 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"]
1638
+ [debug] [2025-12-03T05:02:35.044Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1639
+ [debug] [2025-12-03T05:02:35.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"]
1640
+ [debug] [2025-12-03T05:02:35.057Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1641
+ [debug] [2025-12-03T05:02:35.172Z] > 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"]
1642
+ [debug] [2025-12-03T05:02:35.172Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1643
+ [debug] [2025-12-03T05:02:35.173Z] > 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"]
1644
+ [debug] [2025-12-03T05:02:35.173Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1645
+ [debug] [2025-12-03T05:02:35.188Z] > 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"]
1646
+ [debug] [2025-12-03T05:02:35.189Z] > 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"]
1647
+ [debug] [2025-12-03T05:02:35.189Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1648
+ [debug] [2025-12-03T05:02:35.189Z] > 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"]
1649
+ [debug] [2025-12-03T05:02:35.189Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1650
+ [debug] [2025-12-03T05:02:35.189Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1651
+ [debug] [2025-12-03T05:02:35.190Z] > 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"]
1652
+ [debug] [2025-12-03T05:02:35.190Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1653
+ [debug] [2025-12-03T05:02:35.191Z] > 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"]
1654
+ [debug] [2025-12-03T05:02:35.192Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
1655
+ [debug] [2025-12-03T05:02:35.192Z] > 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"]
1656
+ [debug] [2025-12-03T05:02:35.192Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "0.0.127",
3
+ "version": "0.0.129",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {