mirror of
https://github.com/TheTaz25/denis.ergin.git
synced 2025-07-12 22:08:48 +00:00
feat(knowledge-base): new page for s2
This commit is contained in:
parent
63142e27ea
commit
0a705d692e
6 changed files with 37 additions and 2 deletions
|
@ -8,7 +8,7 @@ export async function getStaticPaths() {
|
|||
const blogEntries = await getCollection('dhbw');
|
||||
return blogEntries.map(entry => ({
|
||||
params: { slug: entry.slug }, props: { entry },
|
||||
}));
|
||||
}))
|
||||
}
|
||||
// 2. For your template, you can get the entry directly from the prop
|
||||
const { entry } = Astro.props;
|
||||
|
|
|
@ -25,7 +25,9 @@ const dhbwModules = await getCollection('dhbw', (module) => module.data.show);
|
|||
Hier findet Ihr alles rund um die Module die ich als Dozent für die DHBW verfasst habe.
|
||||
</p>
|
||||
<HorizontalSlider>
|
||||
{dhbwModules.map((module) => (
|
||||
{dhbwModules
|
||||
.sort((e1, e2) => (e1.data.order - e2.data.order))
|
||||
.map((module) => (
|
||||
<Card to={`/${module.data.staticPath}${module.slug}`} class="module-card">
|
||||
<span class="card-title">{module.data.title}</span>
|
||||
<Icon name="arrow" class="arrow" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue