Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh authored and astrobot-houston committed Oct 24, 2022
1 parent 1ed0574 commit 7e430a3
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions examples/blog/src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import BaseHead from "../components/BaseHead.astro";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
import BaseHead from '../components/BaseHead.astro';
import Header from '../components/Header.astro';
import Footer from '../components/Footer.astro';
export interface Props {
content: {
Expand All @@ -27,7 +27,7 @@ const {
margin: 0.25em 0 0;
}
hr {
border-top: 1px solid #DDD;
border-top: 1px solid #ddd;
margin: 1rem 0;
}
</style>
Expand All @@ -37,18 +37,15 @@ const {
<Header />
<main>
<article>
{heroImage && (
<img
width={720}
height={360}
src={heroImage}
alt=""
/>
)}
{heroImage && <img width={720} height={360} src={heroImage} alt="" />}
<h1 class="title">{title}</h1>
{pubDate && <time>{pubDate}</time>}
{updatedDate && <div>Last updated on <time>{updatedDate}</time></div>}
<hr/>
{updatedDate && (
<div>
Last updated on <time>{updatedDate}</time>
</div>
)}
<hr />
<slot />
</article>
</main>
Expand Down

0 comments on commit 7e430a3

Please sign in to comment.