summaryrefslogtreecommitdiff
path: root/examples/blog/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src/components')
-rw-r--r--examples/blog/src/components/BlogPost.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blog/src/components/BlogPost.astro b/examples/blog/src/components/BlogPost.astro
index 22fd74645..65eed099d 100644
--- a/examples/blog/src/components/BlogPost.astro
+++ b/examples/blog/src/components/BlogPost.astro
@@ -8,14 +8,14 @@ export interface Props {
heroImage: string;
}
-const { title, author, publishDate, heroImage } = Astro.props;
+const { title, author, publishDate, heroImage, alt } = Astro.props;
---
<div class="layout">
<article class="content">
<div>
<header>
- {heroImage && <img width="720" height="420" class="hero-image" loading="lazy" src={heroImage} />}
+ {heroImage && <img width="720" height="420" class="hero-image" loading="lazy" src={heroImage} alt={alt} />}
<p class="publish-date">{publishDate}</p>
<h1 class="title">{title}</h1>
<Author name="@FredKSchott" href="https://twitter.com/FredKSchott" />