Skip to content

Commit bab5232

Browse files
committed
fix: add narrow layout file back
1 parent 4f82043 commit bab5232

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/layouts/narrow.astro

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
import DefaultLayout from "./default.astro";
3+
const { frontmatter } = Astro.props;
4+
---
5+
6+
<!--<DefaultLayout>-->
7+
<!-- <main class="relative">-->
8+
<!-- <img alt="Cover Image"-->
9+
<!-- src={frontmatter.cover}-->
10+
<!-- class="absolute top-24 h-32 w-full object-cover lg:h-48"/>-->
11+
<!-- <div class="mx-auto max-w-3xl px-4 sm:px-6 lg:px-8">-->
12+
<!-- <slot/>-->
13+
<!-- </div>-->
14+
<!-- </main>-->
15+
<!--</DefaultLayout>-->
16+
17+
<DefaultLayout>
18+
<main class="mx-auto max-w-2xl content">
19+
<h1 class="text-3xl font-bold tracking-tight sm:text-5xl">
20+
{frontmatter.title}
21+
</h1>
22+
<div>
23+
<slot/>
24+
</div>
25+
</main>
26+
</DefaultLayout>

0 commit comments

Comments
 (0)