reglages cartes
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 23s

This commit is contained in:
Julie Blanc 2026-03-23 12:40:47 +01:00
parent bdda8dc8a5
commit a85a810b1e
11 changed files with 641 additions and 13 deletions

View file

@ -69,7 +69,7 @@
:data-page-type="item.template"
>
<h4>{{ item.title }}</h4>
<figure v-if="item.image" class="block-carte">
<figure v-if="item.image" :class="['block-carte', getCarteBlockId(item.id) ? `block-carte--${getCarteBlockId(item.id)}` : '']">
<img :src="item.image" alt="" />
</figure>
<div v-if="item.tags && item.tags.length" class="tags">
@ -133,6 +133,10 @@ import {
const narrativeStore = useNarrativeStore();
const hasNarrativeData = computed(() => narrativeStore.data !== null);
const getCarteBlockId = (itemId) => {
return (itemId || '').split('/').pop()?.replace(/[^a-z0-9]/gi, '').slice(0, 8) || '';
};
const flattenedContent = computed(() => narrativeStore.flattenedContent);
// Filter out hidden blocks