reglages cartes
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 23s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 23s
This commit is contained in:
parent
bdda8dc8a5
commit
a85a810b1e
11 changed files with 641 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue