Новые изменения в коде проекта
This commit is contained in:
parent
0777fc201f
commit
aef12e853d
12 changed files with 159 additions and 15 deletions
|
|
@ -6,7 +6,7 @@ export interface Props {
|
|||
categoryColor?: string;
|
||||
date: string;
|
||||
readTime: string;
|
||||
imageUrl?: string;
|
||||
image?: string;
|
||||
slug?: string;
|
||||
}
|
||||
|
||||
|
|
@ -17,9 +17,11 @@ const {
|
|||
categoryColor = 'bg-gold',
|
||||
date,
|
||||
readTime,
|
||||
imageUrl = '/images/blog/default.avif',
|
||||
image,
|
||||
slug = '#'
|
||||
} = Astro.props;
|
||||
|
||||
const imageUrl = image || '/images/blog/default.avif';
|
||||
---
|
||||
|
||||
<article class="blog-card" data-animation="fade-up">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue