import blogs from "@/data/blogs.json";
import { getBlogListSchema } from "@/lib/schemas";
import BlogsClient from "./BlogsClient";

export const metadata = {
  title: "Railway Updates & Stories",
  description:
    "Latest news, schedule changes, and stories from Rajbari's railway tracks. Stay updated with train service announcements and community stories.",
  keywords: [
    "Rajbari railway news",
    "train updates Bangladesh",
    "railway blog",
    "Rajbari station news",
  ],
  openGraph: {
    title: "Railway Updates & Stories | Trains of Rajbari",
    description:
      "Latest news, schedule changes, and stories from Rajbari's railway tracks.",
    url: "https://trainsofrajbari.com/blogs",
    images: [{ url: "/logo.png" }],
  },
  alternates: {
    canonical: "https://trainsofrajbari.com/blogs",
  },
};

export default function BlogsPage() {
  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: JSON.stringify(getBlogListSchema(blogs)),
        }}
      />
      <BlogsClient />
    </>
  );
}
