---
import SiteLayout from "../../layouts/SiteLayout.astro";
import { getCollection } from "astro:content";

const entries = await getCollection("cas-ia");
entries.sort((a, b) => (a.data.order ?? 9999) - (b.data.order ?? 9999));
---

<SiteLayout title="Cas pratique — Gouvernance des systèmes IA">
  <h1>Cas pratique — Gouvernance des systèmes IA</h1>

  <ul>
    {entries.map((e) => (
      <li>
        <a href={`/cas-ia/${String(e.id).replace(/\.(md|mdx)$/i, "")}/`}>
          {e.data.title}
        </a>
      </li>
    ))}
  </ul>
</SiteLayout>