diff --git a/src/components/ShareSideSticky.astro b/src/components/ShareSideSticky.astro index 37ec6a0..0695791 100644 --- a/src/components/ShareSideSticky.astro +++ b/src/components/ShareSideSticky.astro @@ -1,16 +1,73 @@ -
+--- +export async function getStaticPaths() { + const response = await fetch('https://management.beanstalkedu.com/items/blog?filter[property][_eq]=teenybeans_curriculum'); + const data = await response.json(); + const finalData = data.data.map((n: { slug: string | undefined; })=>{ + return {params: {id:n.slug}} + }) + return finalData; +} + +const response = await fetch('https://management.beanstalkedu.com/items/blog?filter[property][_eq]=teenybeans_curriculum'); +const data = await response.json(); +const { id } = Astro.params; +const idx = data.data.findIndex((n: { slug: string | undefined; }) => n.slug ===id); +--- + +
- - - - - - - - - - - - +
+
+ + + + + + + + + + + + + +
+
-
\ No newline at end of file + + + + \ No newline at end of file