fix: images
This commit is contained in:
parent
2f999ed437
commit
c2602c27a8
3 changed files with 8 additions and 2 deletions
|
|
@ -25,11 +25,12 @@ export const BlogExcerpt = ({id, title, excerpt, photo}: BlogExcerptProps) => {
|
||||||
height={photo.height}
|
height={photo.height}
|
||||||
alt={"Blogbild"}
|
alt={"Blogbild"}
|
||||||
className={styles.image}
|
className={styles.image}
|
||||||
|
unoptimized={true}
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div className={styles.content}>
|
||||||
<h3><Link href={url} className={styles.title}>{title}</Link></h3>
|
<h3><Link href={url} className={styles.title}>{title}</Link></h3>
|
||||||
<p>{excerpt}</p>
|
<p>{excerpt}</p>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,8 @@
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-basis: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export const fetchBlogPosts = async (displayOnFrontpage: boolean): Promise<Pagin
|
||||||
title: true,
|
title: true,
|
||||||
date: true,
|
date: true,
|
||||||
photo: true,
|
photo: true,
|
||||||
"content": !displayOnFrontpage, // hack to fetch content only for the `/blog` page
|
content: displayOnFrontpage ? undefined : true, // hack to fetch content only for the `/blog` page
|
||||||
},
|
},
|
||||||
where: {
|
where: {
|
||||||
and: [
|
and: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue