import BlogComments from "@/components/BlogComments"; import BlogWidget from "@/components/BlogWidget"; import CommentForm from "@/components/CommentForm"; import { allBlogs } from "@/data/blogs"; import payloadConfig from "@/payload.config"; import Image from "next/image"; import { getPayload } from "payload"; export const metadata = { title: "Slick Blogs Single || Resonance — One & Multi Page React Nextjs Creative Template", description: "Resonance — One & Multi Page React Nextjs Creative Template", }; export default async function BlogRead({ params, }: { params: Promise<{ slug: string }>; }) { const slug = (await params).slug; const payload = await getPayload({ config: payloadConfig }); const blogData = await payload.find({ collection: "blogs", where: { slug: { equals: slug }, }, pagination: false, }); console.log("data", blogData); const blog = allBlogs.filter((elm) => elm.id == 34)[0] || allBlogs[0]; return ( <>
{/* */}
{/* */}

{/* @ts-ignore */} {blog?.title || blog?.postTitle}

{/* Author, Categories, Comments */}
Categories: Design, Branding
{/* End Author, Categories, Comments */}
<> {/* Section */}
{/* Content */}
{/* Post */}
Image Description

Morbi lacus massa, euismod ut turpis molestie, tristique sodales est. Integer sit amet mi id sapien tempor molestie in nec massa. Fusce non ante sed lorem rutrum feugiat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non laoreet dui. Morbi lacus massa, euismod ut turpis molestie, tristique sodales est. Integer sit amet mi id sapien tempor molestie in nec massa.

Fusce non ante sed lorem rutrum feugiat. Vestibulum pellentesque, purus ut dignissim consectetur, nulla erat ultrices purus, ut consequat sem elit non sem. Morbi lacus massa, euismod ut turpis molestie, tristique sodales est. Integer sit amet mi id sapien tempor molestie in nec massa. Fusce non ante sed lorem rutrum feugiat.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. Vestibulum pellentesque, purus ut dignissim consectetur, nulla erat ultrices purus.

Someone famous in Source Title

Praesent ultricies ut ipsum non laoreet. Nunc ac ultricies leo. Nulla ac ultrices arcu. Nullam adipiscing lacus in consectetur posuere. Nunc malesuada tellus turpis, ac pretium orci molestie vel. Morbi lacus massa, euismod ut turpis molestie, tristique sodales est. Integer sit amet mi id sapien tempor molestie in nec massa. Fusce non ante sed lorem rutrum feugiat.

  • First item of the list
  • Second item of the list
  • Third item of the list

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non laoreet dui. Morbi lacus massa, euismod ut turpis molestie, tristique sodales est. Integer sit amet mi id sapien tempor molestie in nec massa. Fusce non ante sed lorem rutrum feugiat. Vestibulum pellentesque, purus ut dignissim consectetur, nulla erat ultrices purus, ut consequat sem elit non sem.

{/* End Post */} {/* Comments */}

Comments (3)

{/* End Comments */} {/* Add Comment */}

Leave a comment

{/* Form */} {/* End Form */}
{/* End Add Comment */} {/* Prev/Next Post */} {/* End Prev/Next Post */}
{/* End Content */}
{/* End Section */} {/* Divider */}
{/* End Divider */} {/* Section */}
); }