diff options
Diffstat (limited to 'examples/blog/src/components/BlogPost.astro')
-rw-r--r-- | examples/blog/src/components/BlogPost.astro | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/examples/blog/src/components/BlogPost.astro b/examples/blog/src/components/BlogPost.astro index 2dba32c3d..55eaa66ed 100644 --- a/examples/blog/src/components/BlogPost.astro +++ b/examples/blog/src/components/BlogPost.astro @@ -1,5 +1,5 @@ --- -import Author from './Author.astro'; +import Author from "./Author.astro"; export interface Props { title: string; @@ -16,7 +16,16 @@ const { title, author, publishDate, heroImage, alt } = Astro.props; <article class="content"> <div> <header> - {heroImage && <img width="720" height="420" class="hero-image" loading="lazy" src={heroImage} alt={alt} />} + {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" /> |