mirror of
https://github.com/rjNemo/orbital-orbit
synced 2026-06-06 09:36:41 +00:00
refactor: blog layout
This commit is contained in:
parent
72dd16d023
commit
10869f1e64
1 changed files with 8 additions and 4 deletions
|
|
@ -1,7 +1,11 @@
|
|||
---
|
||||
import BaseLayout from "./BaseLayout.astro"
|
||||
const { frontmatter } = Astro.props
|
||||
---
|
||||
<h1>{frontmatter.title}</h1>
|
||||
<p>Published on: {frontmatter.pubDate.toString()}</p>
|
||||
<p>written by {frontmatter.author}</p>
|
||||
<slot/>
|
||||
<BaseLayout pageTitle={frontmatter.title}>
|
||||
<p>Published on: {frontmatter.pubDate.toString().slice(0, 10)}</p>
|
||||
<p><em>{frontmatter.description}</em></p>
|
||||
<p>Written by: {frontmatter.author}</p>
|
||||
<img src={frontmatter.image.url} alt={frontmatter.image.alt} width="500"/>
|
||||
<slot/>
|
||||
</BaseLayout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue