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

const entries = (await getCollection('archicratie'))
  .filter((e) => e.slug !== "prologue");
entries.sort((a, b) => (a.data.order ?? 9999) - (b.data.order ?? 9999));
---
<SiteLayout title="Essai-thèse — Archicratie">
  <h1>Essai-thèse — Archicratie</h1>
  <ul>
    {entries.map((e) => (
      <li><a href={`/archicratie/${e.slug}/`}>{e.data.title}</a></li>
    ))}
  </ul>
</SiteLayout>
