feat: add login page

This commit is contained in:
2024-03-11 17:28:53 +01:00
parent cf9ac2994a
commit b4722ac030
10 changed files with 79 additions and 14 deletions
@@ -6,7 +6,7 @@ import ArticleLayout from '../../layouts/ArticleLayout.astro'
export async function getStaticPaths() {
const blogEntries = await getCollection('guides')
return blogEntries.map(entry => ({
params: { slug: entry.slug },
params: { id: entry.data.id },
props: { entry },
}))
}
@@ -15,7 +15,7 @@ const { entry } = Astro.props
const { Content } = await entry.render()
---
<ArticleLayout {...entry.data} pageName={['guide', entry.slug]}>
<ArticleLayout {...entry.data} pageName={['guide', entry.data.id]}>
<div class="text-content">
<h1>{entry.data.title}</h1>
{entry.data.series && <h2>{entry.data.series}</h2>}