Files
aurora/src/layouts/ArticleLayout.astro

23 lines
631 B
Plaintext
Raw Normal View History

2023-05-18 17:31:16 +02:00
---
2023-05-18 22:17:46 +02:00
const { id, title, description, publicationDate, headings } = Astro.props;
2023-05-18 17:31:16 +02:00
import PageLayout from "./PageLayout.astro";
import TableOfContents from "../components/TableOfContents.svelte";
import PublicationDate from "../components/PublicationDate.astro";
---
<PageLayout {title} {description}>
2023-05-18 20:20:43 +02:00
<TableOfContents slot="nav" client:only="svelte" {headings} />
2023-05-18 17:31:16 +02:00
<Fragment slot="header">
<p>
Published on
2023-05-22 14:24:13 +02:00
<PublicationDate {publicationDate} />
2023-05-18 17:31:16 +02:00
</p>
2023-05-18 22:17:46 +02:00
<a
href={`https://github.com/thiloho/aurora/edit/main/src/content/blog/${id}`}
>Edit this page</a
>
2023-05-18 17:31:16 +02:00
</Fragment>
<slot />
</PageLayout>