import type { Metadata } from "next";
import { BlogList } from "@/components/blog-list";
import { PageHero } from "@/components/ui";
import { getPosts } from "@/lib/blog/repository";
export const metadata: Metadata = {
  title: "Blog",
  description:
    "Ideas, opinions and perspectives on Australian government and meaningful reform.",
  alternates: { canonical: "/blog/" },
};
export const dynamic = "force-dynamic";
export default async function BlogPage() {
  const posts = await getPosts();
  return (
    <>
      <PageHero
        title="From the movement."
        description="Ideas, opinions and perspectives on Australian government and the path to meaningful reform."
        kicker="The MBG blog"
      />
      <section className="page-content">
        <div className="wrap">
          <BlogList posts={posts} />
        </div>
      </section>
    </>
  );
}
