mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 03:21:35 +01:00
Initial commit
This commit is contained in:
21
src/layouts/ArticleLayout.astro
Normal file
21
src/layouts/ArticleLayout.astro
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
const { title, description, publicationDate, headings } = Astro.props;
|
||||
|
||||
import PageLayout from "./PageLayout.astro";
|
||||
import TableOfContents from "../components/TableOfContents.svelte";
|
||||
import PublicationDate from "../components/PublicationDate.astro";
|
||||
---
|
||||
|
||||
<PageLayout {title} {description}>
|
||||
<TableOfContents slot="nav" client:load {headings} />
|
||||
<Fragment slot="header">
|
||||
<p>
|
||||
Published on
|
||||
<strong>
|
||||
<PublicationDate {publicationDate} />
|
||||
</strong>
|
||||
</p>
|
||||
<a href="#">Edit this page</a>
|
||||
</Fragment>
|
||||
<slot />
|
||||
</PageLayout>
|
||||
Reference in New Issue
Block a user