feat: display articles
Some checks failed
Deploy to SFTP Server / build (push) Failing after 1m38s

This commit is contained in:
Max Richter
2025-10-22 17:17:34 +02:00
parent 3a120e32fc
commit ae266dbdc5
10 changed files with 121 additions and 47 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
export let date: string | Date;
export let readDuration: string | undefined;
const toDate = (d: string | Date) =>
typeof d === "string" ? new Date(d) : d;
@@ -22,4 +23,8 @@
<time class="text-sm text-neutral" datetime={iso(date)}
>{formatDate(date)}</time>
{/if}
{#if readDuration}
<div class="text-sm text-neutral">{readDuration} mins read</div>
{/if}
</div>