bunki 0.13.0 → 0.13.2

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 CHANGED
@@ -33103,7 +33103,36 @@ async function parseMarkdownFile(filePath) {
33103
33103
  slug,
33104
33104
  url: `/${postYear}/${slug}/`,
33105
33105
  excerpt: data.excerpt || extractExcerpt(content),
33106
- html: sanitizedHtml
33106
+ html: sanitizedHtml,
33107
+ ...data.location && {
33108
+ location: {
33109
+ name: data.location.name,
33110
+ address: data.location.address,
33111
+ lat: data.location.lat,
33112
+ lng: data.location.lng
33113
+ }
33114
+ },
33115
+ ...data.category && { category: data.category },
33116
+ ...data.business && {
33117
+ business: {
33118
+ type: data.business.type,
33119
+ name: data.business.name,
33120
+ address: data.business.address,
33121
+ lat: data.business.lat,
33122
+ lng: data.business.lng,
33123
+ ...data.business.cuisine && { cuisine: data.business.cuisine },
33124
+ ...data.business.priceRange && {
33125
+ priceRange: data.business.priceRange
33126
+ },
33127
+ ...data.business.telephone && {
33128
+ telephone: data.business.telephone
33129
+ },
33130
+ ...data.business.url && { url: data.business.url },
33131
+ ...data.business.openingHours && {
33132
+ openingHours: data.business.openingHours
33133
+ }
33134
+ }
33135
+ }
33107
33136
  };
33108
33137
  return { post, error: null };
33109
33138
  } catch (error) {
package/dist/index.js CHANGED
@@ -30721,7 +30721,36 @@ async function parseMarkdownFile(filePath) {
30721
30721
  slug,
30722
30722
  url: `/${postYear}/${slug}/`,
30723
30723
  excerpt: data.excerpt || extractExcerpt(content),
30724
- html: sanitizedHtml
30724
+ html: sanitizedHtml,
30725
+ ...data.location && {
30726
+ location: {
30727
+ name: data.location.name,
30728
+ address: data.location.address,
30729
+ lat: data.location.lat,
30730
+ lng: data.location.lng
30731
+ }
30732
+ },
30733
+ ...data.category && { category: data.category },
30734
+ ...data.business && {
30735
+ business: {
30736
+ type: data.business.type,
30737
+ name: data.business.name,
30738
+ address: data.business.address,
30739
+ lat: data.business.lat,
30740
+ lng: data.business.lng,
30741
+ ...data.business.cuisine && { cuisine: data.business.cuisine },
30742
+ ...data.business.priceRange && {
30743
+ priceRange: data.business.priceRange
30744
+ },
30745
+ ...data.business.telephone && {
30746
+ telephone: data.business.telephone
30747
+ },
30748
+ ...data.business.url && { url: data.business.url },
30749
+ ...data.business.openingHours && {
30750
+ openingHours: data.business.openingHours
30751
+ }
30752
+ }
30753
+ }
30725
30754
  };
30726
30755
  return { post, error: null };
30727
30756
  } catch (error) {
package/dist/types.d.ts CHANGED
@@ -1,6 +1,42 @@
1
1
  /**
2
2
  * Post object representing a single markdown file
3
3
  */
4
+ export interface Location {
5
+ /** Name of the location */
6
+ name: string;
7
+ /** Full address of the location */
8
+ address: string;
9
+ /** Latitude coordinate */
10
+ lat: number;
11
+ /** Longitude coordinate */
12
+ lng: number;
13
+ }
14
+ /**
15
+ * Business schema data for LocalBusiness structured data
16
+ * Includes location data for map display and geo coordinates
17
+ */
18
+ export interface Business {
19
+ /** Schema.org type (e.g., Restaurant, Bakery, CafeOrCoffeeShop) */
20
+ type: string;
21
+ /** Business name */
22
+ name: string;
23
+ /** Full address of the business */
24
+ address: string;
25
+ /** Latitude coordinate */
26
+ lat: number;
27
+ /** Longitude coordinate */
28
+ lng: number;
29
+ /** Cuisine type for restaurants (e.g., "Mexican, Oaxacan") */
30
+ cuisine?: string;
31
+ /** Price range (e.g., "$", "$$", "$$$") */
32
+ priceRange?: string;
33
+ /** Business phone number */
34
+ telephone?: string;
35
+ /** Business website URL */
36
+ url?: string;
37
+ /** Opening hours in schema.org format */
38
+ openingHours?: string;
39
+ }
4
40
  export interface Post {
5
41
  /** Title of the post */
6
42
  title: string;
@@ -20,6 +56,12 @@ export interface Post {
20
56
  excerpt: string;
21
57
  /** Rendered HTML content */
22
58
  html: string;
59
+ /** Optional location data for map display */
60
+ location?: Location;
61
+ /** Optional category for the post */
62
+ category?: string;
63
+ /** Optional business schema data for LocalBusiness structured data */
64
+ business?: Business;
23
65
  }
24
66
  /**
25
67
  * Configuration for CSS processing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunki",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "An opinionated static site generator built with Bun featuring PostCSS integration and modern web development workflows",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",