diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx
index f23d812db..98eb69799 100644
--- a/app/[locale]/page.tsx
+++ b/app/[locale]/page.tsx
@@ -131,7 +131,7 @@ export default async function HomePage({
diff --git a/app/[locale]/stories/page.tsx b/app/[locale]/stories/page.tsx
new file mode 100644
index 000000000..9d8f0b416
--- /dev/null
+++ b/app/[locale]/stories/page.tsx
@@ -0,0 +1,45 @@
+import Footer from 'components/layout/footer';
+import { SupportedLocale } from 'components/layout/navbar/language-control';
+
+import Navbar from 'components/layout/navbar';
+import Stories from 'components/layout/stories';
+import { getCart } from 'lib/shopify';
+import { cookies } from 'next/headers';
+import { Suspense } from 'react';
+
+export const runtime = 'edge';
+const { SITE_NAME } = process.env;
+
+export const metadata = {
+ title: SITE_NAME,
+ description: SITE_NAME,
+ openGraph: {
+ type: 'website'
+ }
+};
+
+export default async function StoriesPage({
+ params: { locale }
+}: {
+ params: { locale?: SupportedLocale };
+}) {
+ const cartId = cookies().get('cartId')?.value;
+ let cart;
+
+ if (cartId) {
+ cart = await getCart(cartId);
+ }
+
+ return (
+
+ );
+}
diff --git a/components/layout/stories.tsx b/components/layout/stories.tsx
index e2bd95d84..7e29a0637 100644
--- a/components/layout/stories.tsx
+++ b/components/layout/stories.tsx
@@ -7,35 +7,35 @@ import { SupportedLocale } from './navbar/language-control';
export default async function Stories({
locale,
handle,
- articles
+ articles,
+ more = false
}: {
locale?: SupportedLocale;
handle: string;
articles?: number;
+ more?: boolean;
}) {
const blog = await getBlog({
- handle: 'headless',
- articles: articles || 3,
+ handle: handle,
+ articles: articles || 250,
language: locale?.toUpperCase()
});
- console.debug({ blog });
if (!blog) return null;
return (
-
+
stories
{blog?.articles?.map((article) => (
-
-
+
+
{!!article?.image?.url && (
))}
-
-
- more stories
-
-
+ {more && (
+
+
+ more stories
+
+
+ )}
);