Browse Source

Correction rubrique

Tibo 4 years ago
parent
commit
2b6d5f8cc5
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/css/styles_de_paragraphes.scss
  2. 2 2
      src/pages/Index.vue

+ 1 - 0
src/css/styles_de_paragraphes.scss

@@ -128,6 +128,7 @@
 	// hanging-punctuation: first last;
 }
 
+
 .section-title {
 	font-family: "TextaAlt";
 	font-weight: 800;

+ 2 - 2
src/pages/Index.vue

@@ -50,9 +50,9 @@
   </div>
   <div class="blank-page no-folio" />
   <!-- Chapitres -->
-  <div v-for="edge in $page.chapitres.edges.slice().reverse()" :key="`chapitre${edge.node.id}`">
+  <div v-for="(edge,index) in $page.chapitres.edges.slice().reverse()" :key="`chapitre${edge.node.id}`">
     <div v-if="edge.node.Rubrique">
-      <div class="section-title">
+      <div class="section-title" :class="{breakBefore: index != 0}">
         {{edge.node.Rubrique}}
       </div>
       <h2 :id="`chapitres${edge.node.id}`" class="chapter-title ">{{edge.node.Titre}}</h2>