feat: init
This commit is contained in:
20
src/layouts/MarkdownPostsLayout.astro
Normal file
20
src/layouts/MarkdownPostsLayout.astro
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
import BaseLayout from "./Layout.astro";
|
||||
const { frontmatter } = Astro.props;
|
||||
---
|
||||
|
||||
<BaseLayout pageTitle={frontmatter.title}>
|
||||
<div class="gif">
|
||||
<img src="/.netlify/images?url=/images/blog.webp" role="presentation" width="300" height="259" decoding="async">
|
||||
</div>
|
||||
<h2 style="text-decoration:none;">{frontmatter.title}</h2>
|
||||
<ul class="badge__list">
|
||||
<li>
|
||||
<span class="badge badge--item">AUTHOR</span>{frontmatter.author}
|
||||
</li>
|
||||
<li>
|
||||
<span class="badge badge--item">PUBLISHED</span>{frontmatter.date}
|
||||
</li>
|
||||
</ul>
|
||||
<slot />
|
||||
</BaseLayout>
|
||||
Reference in New Issue
Block a user