Блоги #1

Merged
rndtrash merged 64 commits from feature-blogs into master 2025-10-22 08:44:56 +03:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 0edf7022e8 - Show all commits

3
src/app.d.ts vendored
View file

@ -22,6 +22,7 @@ declare global {
slug: string; slug: string;
title: string; title: string;
thumbnail?: string; thumbnail?: string;
thumbnailAlt?: string;
date?: string; date?: string;
dateChanged?: string; dateChanged?: string;
description: string; description: string;
@ -32,4 +33,4 @@ declare global {
} }
} }
export {}; export { };

View file

@ -57,7 +57,7 @@
<img <img
class="absolute h-full w-full object-cover" class="absolute h-full w-full object-cover"
src={`/blog/${post.slug}/${post.thumbnail}`} src={`/blog/${post.slug}/${post.thumbnail}`}
alt="thumbnail" alt={post.thumbnailAlt ?? 'Миниатюра поста'}
/> />
{/if} {/if}
</div> </div>