summaryrefslogtreecommitdiff
path: root/www/src/components/BlogPost.astro
diff options
context:
space:
mode:
Diffstat (limited to 'www/src/components/BlogPost.astro')
-rw-r--r--www/src/components/BlogPost.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/src/components/BlogPost.astro b/www/src/components/BlogPost.astro
index 04d8e4324..8db1b305c 100644
--- a/www/src/components/BlogPost.astro
+++ b/www/src/components/BlogPost.astro
@@ -4,7 +4,7 @@ import GithubStarButton from './GithubStarButton.astro';
export interface Props {
title: string;
- author: string;
+ author?: string;
publishDate: string;
heroImage: string;
}
@@ -19,7 +19,7 @@ const { title, author, publishDate, heroImage } = Astro.props;
{heroImage && <img width="720" height="420" class="hero-image" loading="lazy" src={heroImage} />}
<p class="publish-date">{publishDate}</p>
<h1 class="title">{title}</h1>
- <Author authorId={author} />
+ {author && <Author authorId={author} />}
<GithubStarButton />
</header>
<main>