21 lines
No EOL
624 B
Text
21 lines
No EOL
624 B
Text
---
|
|
import Layout from '../layouts/Layout.astro';
|
|
import { getCollection } from "astro:content";
|
|
|
|
export async function getStaticPaths() {
|
|
const pageEntries = await getCollection('pages');
|
|
return pageEntries.map(entry => ({
|
|
params: { slug: entry.slug }, props: { entry },
|
|
}));
|
|
}
|
|
const { entry } = Astro.props;
|
|
const { Content } = await entry.render();
|
|
|
|
---
|
|
|
|
<Layout title={`${entry.data.title} | Terminal Blog`} path={`/var/log/${entry.slug}`} description={entry.data.description} >
|
|
<h1 class="post-title">{entry.data.title}</h1>
|
|
<div class="post-content">
|
|
<Content/>
|
|
</div>
|
|
</Layout> |