import Link from "next/link"; import Layout from "@/components/layout/Layout"; import Blogs from "@/utils/constant.utils"; export const metadata = { title: "Street-Food Stories from Sixty5 Street", description: "Dive into the Sixty5 Street blog for behind-the-scenes stories, flavor experiments, new dish launches and street-food culture updates.", }; const truncateWords = (text, limit) => { const words = text.split(" "); return words.length > limit ? words.slice(0, limit).join(" ") + " ..." : text; }; const stripHtml = (html) => { if (!html) return ""; return html.replace(/<[^>]*>/g, ""); }; const truncateTitle = (text, limit) => { if (!text) return ""; return text.length > limit ? text.slice(0, limit) + "..." : text; }; export default function Blog() { return (
Our Blogs

Explore Our Delicious Dishes

{Blogs.map((blog) => (
{/* Blog Image */}
{blog.title}
{/* Blog Title */}

{truncateTitle(stripHtml(blog.title), 30)}

{/* Blog Excerpt */}

{truncateWords(stripHtml(blog.para))}

{/* Read More Button */} Read More
))}
); }