generated from avior/template-web-astro
fix: Check errors
Signed-off-by: Florian Bouillon <f.bouillon@aptatio.com>
This commit is contained in:
@ -15,7 +15,17 @@ export async function getStaticPaths() {
|
||||
const { entry } = Astro.props as Awaited<ReturnType<typeof getStaticPaths>>[0]['props'];
|
||||
const { Content } = await entry.render();
|
||||
---
|
||||
<Article title={entry.data.title} image={[entry.data.image]} description={entry.data.description} link={entry.data.link} breadcrumb={[{text: 'Accueil', href: '/'}, {text: 'Projets', href: '/projets'}, {text: entry.data.title}]}>
|
||||
<Article
|
||||
title={entry.data.title}
|
||||
image={entry.data.image ? [entry.data.image] : undefined}
|
||||
description={entry.data.description}
|
||||
link={entry.data.link}
|
||||
breadcrumb={[
|
||||
{text: 'Accueil', href: '/'},
|
||||
{text: 'Projets', href: '/projets'},
|
||||
{text: entry.data.title}
|
||||
]}
|
||||
>
|
||||
<h1>{entry.data.title}</h1>
|
||||
<p class="flex justify-end font-lights my-0">
|
||||
{entry.data.created && (
|
||||
|
Reference in New Issue
Block a user