---
import BaseLayout from '../layouts/BaseLayout.astro';
import EntryList from '../components/EntryList.astro';
import { getAllEntries } from '../lib/entries';

const allEntries = await getAllEntries();
const entries = allEntries.slice(0, 12);
const lastUpdated = allEntries[0]?.date;
---

<BaseLayout
  title="List view"
  description="The latest entries on Unique, in a plain chronological list."
  subheader="The latest, in plain text."
  lastUpdated={lastUpdated}
  noindex
>
  <EntryList entries={entries} />
</BaseLayout>
