more blabla

This commit is contained in:
2020-02-19 15:58:15 +01:00
parent d647a8c0b7
commit 3a9f162bb0
4 changed files with 26 additions and 5 deletions

View File

@ -23,6 +23,15 @@
</li>
</ul>
</nav>
<section class="accroche">
<figure>
<img
:src="content.image_accroche.src"
:alt="content.image_accroche.alt"
:title="content.image_accroche.title"
/>
</figure>
</section>
<section class="taxonomy">
<div class="thesaurus">
<ul>
@ -217,7 +226,7 @@ export default {
case 'field_visuel':
field = e.meta
field.id = e.id
field.src = included.links.card_medium.href
field.src = included.links.article_card_medium.href
break;
case 'field_linked_materials':
field = included.attributes
@ -247,7 +256,10 @@ export default {
this.content[key].push(field)
}
})
}
// extract first visuel as accroche
this.content.image_accroche = this.content.field_visuel.shift()
// update main page title
this.$store.commit('Common/setPagetitle', this.content.title)