more blabla

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -619,6 +619,15 @@ article.card{
}
#main-content > article.article{
section.accroche{
figure{
width:$column_width*2 + $column_goutiere;
margin:0 $column_goutiere 0 0;
img{
width:100%;
}
}
}
section.taxonomy{
ul{
margin:1em 0 0;
@ -633,8 +642,8 @@ article.card{
figure{
display: inline-block;
vertical-align: top;
width:$column_width;
margin:0 $column_goutiere 0 0;
width:$column_width*2 + $column_goutiere;
margin:0 $column_goutiere $column_goutiere*0.6 0;
img{
width:100%;
}

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)