0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Princesseuh 2022-10-24 13:34:10 +00:00 committed by fredkbot
parent 1ed05742b5
commit 7e430a3dc9

View file

@ -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: {
@ -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>
@ -37,17 +37,14 @@ 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>}
{updatedDate && (
<div>
Last updated on <time>{updatedDate}</time>
</div>
)}
<hr />
<slot />
</article>