diff options
Diffstat (limited to 'examples/blog/src/layouts/BlogPost.astro')
-rw-r--r-- | examples/blog/src/layouts/BlogPost.astro | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro index da1cafe58..e67b2b30f 100644 --- a/examples/blog/src/layouts/BlogPost.astro +++ b/examples/blog/src/layouts/BlogPost.astro @@ -42,10 +42,10 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props; line-height: 1; } .title h1 { - margin: 0 0 .5em 0; + margin: 0 0 0.5em 0; } .date { - margin-bottom: .5em; + margin-bottom: 0.5em; color: rgb(var(--gray)); } .last-updated-on { @@ -58,7 +58,9 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props; <Header /> <main> <article> - <div class="hero-image">{heroImage && <img width={1020} height={510} src={heroImage} alt="" />}</div> + <div class="hero-image"> + {heroImage && <img width={1020} height={510} src={heroImage} alt="" />} + </div> <div class="prose"> <div class="title"> <div class="date"> @@ -80,4 +82,4 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props; </main> <Footer /> </body> -</html>
\ No newline at end of file +</html> |