+
+
+ {/* ── RIGHT SIDEBAR: More articles + categories ── */}
+
-
-
- ← All articles
-
- By {post.author} · {formatDate(post.date)}
-
diff --git a/src/app/(marketing)/blog/page.tsx b/src/app/(marketing)/blog/page.tsx
index 77fc881..6c445a4 100644
--- a/src/app/(marketing)/blog/page.tsx
+++ b/src/app/(marketing)/blog/page.tsx
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import Link from "next/link";
import { POSTS, formatDate } from "./posts";
+import { Breadcrumb } from "@/components/marketing/Breadcrumb";
export const metadata: Metadata = {
title: "Blog",
@@ -8,59 +9,174 @@ export const metadata: Metadata = {
"Guides on baby feeding, health milestones, vaccination schedules, and how to make the most of Tia — written for Indian families.",
};
+// Derive unique categories + counts from posts
+const CATEGORIES = Object.values(
+ POSTS.reduce>((acc, p) => {
+ if (!acc[p.category]) {
+ acc[p.category] = { name: p.category, color: p.categoryColor, count: 0 };
+ }
+ acc[p.category].count++;
+ return acc;
+ }, {})
+);
+
export default function BlogPage() {
return (
- {/* Header */}
-
-
-
Journal
-
The Tia Blog
-
- Practical guides on baby feeding, health, vaccination schedules, and getting the most out of Tia — written for Indian families.
+ {/* Breadcrumb */}
+
+
+
+
+ {/* Page header */}
+
+
+
Journal
+
The Tia Blog
+
+ Practical guides on baby feeding, health, vaccination schedules, and getting the most out of Tia — for Indian families.