mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
1ed05742b5
commit
7e430a3dc9
1 changed files with 11 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
import BaseHead from "../components/BaseHead.astro";
|
import BaseHead from '../components/BaseHead.astro';
|
||||||
import Header from "../components/Header.astro";
|
import Header from '../components/Header.astro';
|
||||||
import Footer from "../components/Footer.astro";
|
import Footer from '../components/Footer.astro';
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
content: {
|
content: {
|
||||||
|
@ -27,7 +27,7 @@ const {
|
||||||
margin: 0.25em 0 0;
|
margin: 0.25em 0 0;
|
||||||
}
|
}
|
||||||
hr {
|
hr {
|
||||||
border-top: 1px solid #DDD;
|
border-top: 1px solid #ddd;
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -37,18 +37,15 @@ const {
|
||||||
<Header />
|
<Header />
|
||||||
<main>
|
<main>
|
||||||
<article>
|
<article>
|
||||||
{heroImage && (
|
{heroImage && <img width={720} height={360} src={heroImage} alt="" />}
|
||||||
<img
|
|
||||||
width={720}
|
|
||||||
height={360}
|
|
||||||
src={heroImage}
|
|
||||||
alt=""
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
<h1 class="title">{title}</h1>
|
<h1 class="title">{title}</h1>
|
||||||
{pubDate && <time>{pubDate}</time>}
|
{pubDate && <time>{pubDate}</time>}
|
||||||
{updatedDate && <div>Last updated on <time>{updatedDate}</time></div>}
|
{updatedDate && (
|
||||||
<hr/>
|
<div>
|
||||||
|
Last updated on <time>{updatedDate}</time>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<hr />
|
||||||
<slot />
|
<slot />
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
|
|
Loading…
Reference in a new issue