Миниатюры заметок могут иметь альт-текст
This commit is contained in:
parent
be9715aca0
commit
0edf7022e8
2 changed files with 3 additions and 2 deletions
1
src/app.d.ts
vendored
1
src/app.d.ts
vendored
|
|
@ -22,6 +22,7 @@ declare global {
|
|||
slug: string;
|
||||
title: string;
|
||||
thumbnail?: string;
|
||||
thumbnailAlt?: string;
|
||||
date?: string;
|
||||
dateChanged?: string;
|
||||
description: string;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
<img
|
||||
class="absolute h-full w-full object-cover"
|
||||
src={`/blog/${post.slug}/${post.thumbnail}`}
|
||||
alt="thumbnail"
|
||||
alt={post.thumbnailAlt ?? 'Миниатюра поста'}
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue