aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PostPreview/PostPreview.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/PostPreview/PostPreview.tsx b/src/components/PostPreview/PostPreview.tsx
index 3dfef73..95aca97 100644
--- a/src/components/PostPreview/PostPreview.tsx
+++ b/src/components/PostPreview/PostPreview.tsx
@@ -19,7 +19,7 @@ const PostPreview = ({
return (
<article className={styles.wrapper}>
- {post.featuredImage && (
+ {post.featuredImage && Object.keys(post.featuredImage).length > 0 && (
<div className={styles.cover}>
<Image
src={post.featuredImage.sourceUrl}
@@ -41,7 +41,7 @@ const PostPreview = ({
dangerouslySetInnerHTML={{ __html: post.content }}
></div>
<footer className={styles.footer}>
- <Link href={post.slug}>
+ <Link href={`/article/${post.slug}`}>
<a className={styles['read-more']}>
{t`Read more`}
<span className="screen-reader-text">