view file & image

This commit is contained in:
2025-06-22 07:00:21 +02:00
parent 45e0989c5d
commit 0dcc1323bd
3 changed files with 73 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
---
import MardownContent from '../../components/MardownContent.astro';
import ElementView from '../../views/ElementView.astro';
import Layout from '../../layouts/Layout.astro';
import fetchApi from '../../lib/strapi';
@@ -25,6 +25,5 @@ try {
---
<Layout title={poleElement.name} description={poleElement.description}>
<h1>{poleElement.name}</h1>
{poleElement.description && <MardownContent content={poleElement.description} />}
<ElementView entry={{ data: poleElement }} />
</Layout>