diff options
author | 2023-07-25 14:54:12 +0000 | |
---|---|---|
committer | 2023-07-25 14:54:12 +0000 | |
commit | ec40c8ccbe40f84b834f21915cbf1e6bb470346e (patch) | |
tree | e7ec3856ac5772687a4ccc42b3d497f90a58ba24 /examples/blog/src/layouts/BlogPost.astro | |
parent | 8e14621659e86b4970f2486f13d8c7384f5ff9d9 (diff) | |
download | astro-ec40c8ccbe40f84b834f21915cbf1e6bb470346e.tar.gz astro-ec40c8ccbe40f84b834f21915cbf1e6bb470346e.tar.zst astro-ec40c8ccbe40f84b834f21915cbf1e6bb470346e.zip |
[ci] format
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> |