Fixed no shortcode
This commit is contained in:
@@ -15,7 +15,7 @@ export default async function Home() {
|
||||
const res = await fetch(query);
|
||||
videos = await res.json();
|
||||
}
|
||||
const hero = await getShortcode("hero_image");
|
||||
const hero = await getShortcode("foo");
|
||||
const systemEvolution = await getShortcode("evolution_systeme");
|
||||
const fondations = await getShortcode("fondements");
|
||||
const todaysPrinciples = await getShortcode("aujourdhui");
|
||||
@@ -23,7 +23,7 @@ export default async function Home() {
|
||||
<main>
|
||||
<Hero
|
||||
background={
|
||||
hero.media?.url ??
|
||||
hero?.media?.url ??
|
||||
"https://shadcnblocks.com/images/block/placeholder-2.svg"
|
||||
}
|
||||
/>
|
||||
@@ -46,7 +46,7 @@ export default async function Home() {
|
||||
title="Les Fondements de Latosa Escrima Concepts"
|
||||
position="left"
|
||||
image={
|
||||
fondations.media?.url ??
|
||||
fondations?.media?.url ??
|
||||
"https://shadcnblocks.com/images/block/placeholder-2.svg"
|
||||
}
|
||||
>
|
||||
@@ -85,7 +85,7 @@ export default async function Home() {
|
||||
title="L’Évolution du Système"
|
||||
position="right"
|
||||
image={
|
||||
systemEvolution.media?.url ??
|
||||
systemEvolution?.media?.url ??
|
||||
"https://shadcnblocks.com/images/block/placeholder-2.svg"
|
||||
}
|
||||
>
|
||||
@@ -133,7 +133,7 @@ export default async function Home() {
|
||||
title="Les Principes du Système Aujourd’hui"
|
||||
position="left"
|
||||
image={
|
||||
todaysPrinciples.media?.url ??
|
||||
todaysPrinciples?.media?.url ??
|
||||
"https://shadcnblocks.com/images/block/placeholder-2.svg"
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user