astro-tractstack 2.0.0-rc.41 → 2.0.0-rc.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-tractstack",
3
- "version": "2.0.0-rc.41",
3
+ "version": "2.0.0-rc.42",
4
4
  "description": "Astro integration for TractStack - redeeming the web from boring experiences",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,6 +13,7 @@ export interface StoryData {
13
13
  menu: any;
14
14
  isHome: boolean;
15
15
  created: string;
16
+ socialImagePath?: string | null;
16
17
  }
17
18
 
18
19
  export async function getStoryData(
@@ -102,11 +102,17 @@ const brandConfig = await getBrandConfig(tenantId);
102
102
  if (!brandConfig.SITE_INIT) {
103
103
  return Astro.redirect('/storykeep');
104
104
  }
105
+
106
+ const ogImage =
107
+ typeof storyData.socialImagePath === `string`
108
+ ? storyData.socialImagePath
109
+ : undefined;
105
110
  ---
106
111
 
107
112
  <Layout
108
113
  title={storyfragmentTitle}
109
114
  slug={lookup || brandConfig.HOME_SLUG}
115
+ ogImage={ogImage}
110
116
  menu={storyData.menu || null}
111
117
  created={storyData.created}
112
118
  isContext={false}