diff options
author | 2022-07-08 22:08:32 +0200 | |
---|---|---|
committer | 2022-07-08 22:08:32 +0200 | |
commit | 59e8c71786fd1c154904b3fefa7d26d88f4d92d2 (patch) | |
tree | 3a352e838b25a402c608913aeca21f471d75a826 /examples/blog/src/components/BlogPost.astro | |
parent | 1f9e4857ff2b2cb7db89d619618cdf546cd3b3dc (diff) | |
download | astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.tar.gz astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.tar.zst astro-59e8c71786fd1c154904b3fefa7d26d88f4d92d2.zip |
Format astro files in examples (#3862)
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" /> |