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

View File

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