---
import { getCollection } from "astro:content";
const entries = await getCollection("faq");
---

<ul>
  {
    entries.map((entry) => (
      <li>
        <a href={`/faq/${entry.slug}`}>{entry.data.title}</a>
      </li>
    ))
  }
</ul>
