diff options
Diffstat (limited to 'src/components/note')
| -rw-r--r-- | src/components/note/Note.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/note/Note.astro b/src/components/note/Note.astro index 3017d2d..920cbc1 100644 --- a/src/components/note/Note.astro +++ b/src/components/note/Note.astro @@ -47,7 +47,7 @@ const { Content } = await render(note); { !isPreview && note.data.attachments && note.data.attachments.length > 0 && ( <div class="mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2"> - {note.data.attachments.map((attachment: { url: string; type: string }) => ( + {note.data.attachments.map((attachment: { type: string; url: string; alt?: string }) => ( <a href={attachment.url} target="_blank" @@ -56,7 +56,7 @@ const { Content } = await render(note); > <img src={attachment.url} - alt="Attachment" + alt={attachment.alt || "Image"} class="h-48 w-full object-cover" loading="lazy" /> |
