diff --git a/src/app/[locale]/blog/[slug]/page.tsx b/src/app/[locale]/blog/[slug]/page.tsx index fe5f562..2f6aefd 100644 --- a/src/app/[locale]/blog/[slug]/page.tsx +++ b/src/app/[locale]/blog/[slug]/page.tsx @@ -27,20 +27,20 @@ export async function generateMetadata({ params }: BlogPostPageProps, parent: Re } -function renderWidget (widget: Widget) { +function renderWidget (widget: Widget, index: number) { switch (widget.type){ case 'widgetParagraph': return ( - <> +

{widget.widget.subTitle}

- +
) case 'widgetMedia': return ( - + ) } } diff --git a/src/components/BlogPosts/BlogPostsList.tsx b/src/components/BlogPosts/BlogPostsList.tsx index 70f85da..954402d 100644 --- a/src/components/BlogPosts/BlogPostsList.tsx +++ b/src/components/BlogPosts/BlogPostsList.tsx @@ -13,7 +13,8 @@ type Props = { basePath: string; locale: string; data: BlogPost[], - total: number + total: number, + pageSize: number }; export const BlogPostsList = ({ basePath = '/', locale, pageSize = DEFAULT_PAGE_SIZE, data = [], total= 0 }: Props) => { @@ -28,7 +29,7 @@ export const BlogPostsList = ({ basePath = '/', locale, pageSize = DEFAULT_PAGE
{data.map((item, i) => (
  • - +
    {item.listImage?.alt}/