<script lang="ts">
  import type { PageProps } from './$types';

  let { data }: PageProps = $props();
</script>

<div class="font-mono">
  {#each Object.entries(data.posts) as [_filename, post]}
    {JSON.stringify(post.metadata, (k, v) =>
      v instanceof Date ? v.toISOString() : v,
    )}
  {/each}
</div>
