bunki 0.13.2 → 0.14.0
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/dist/cli.js +4 -0
- package/dist/index.js +4 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -33495,6 +33495,10 @@ class SiteGenerator {
|
|
|
33495
33495
|
const tags = {};
|
|
33496
33496
|
posts.forEach((post) => {
|
|
33497
33497
|
post.tagSlugs = {};
|
|
33498
|
+
const imageUrl = extractFirstImageUrl(post.html, this.options.config.baseUrl);
|
|
33499
|
+
if (imageUrl) {
|
|
33500
|
+
post.image = imageUrl;
|
|
33501
|
+
}
|
|
33498
33502
|
post.tags.forEach((tagName) => {
|
|
33499
33503
|
const tagSlug = import_slugify.default(tagName, { lower: true, strict: true });
|
|
33500
33504
|
post.tagSlugs[tagName] = tagSlug;
|
package/dist/index.js
CHANGED
|
@@ -31442,6 +31442,10 @@ class SiteGenerator {
|
|
|
31442
31442
|
const tags = {};
|
|
31443
31443
|
posts.forEach((post) => {
|
|
31444
31444
|
post.tagSlugs = {};
|
|
31445
|
+
const imageUrl = extractFirstImageUrl(post.html, this.options.config.baseUrl);
|
|
31446
|
+
if (imageUrl) {
|
|
31447
|
+
post.image = imageUrl;
|
|
31448
|
+
}
|
|
31445
31449
|
post.tags.forEach((tagName) => {
|
|
31446
31450
|
const tagSlug = import_slugify.default(tagName, { lower: true, strict: true });
|
|
31447
31451
|
post.tagSlugs[tagName] = tagSlug;
|
package/dist/types.d.ts
CHANGED
|
@@ -62,6 +62,8 @@ export interface Post {
|
|
|
62
62
|
category?: string;
|
|
63
63
|
/** Optional business schema data for LocalBusiness structured data */
|
|
64
64
|
business?: Business;
|
|
65
|
+
/** Optional image URL (first image from post content, used for thumbnails and social sharing) */
|
|
66
|
+
image?: string;
|
|
65
67
|
}
|
|
66
68
|
/**
|
|
67
69
|
* Configuration for CSS processing
|
package/package.json
CHANGED