|
@@ -48,17 +48,17 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="blank-page no-folio" />
|
|
|
<!-- Chapitres -->
|
|
|
<div v-for="(edge,index) in $page.chapitres.edges.slice().reverse()" :key="`chapitre${edge.node.id}`">
|
|
|
+ <div class="blank-page no-folio breakBeforeLeft" />
|
|
|
<div v-if="edge.node.Rubrique">
|
|
|
- <div class="section-title" :class="{breakBefore: index != 0}">
|
|
|
+ <div class="section-title">
|
|
|
{{edge.node.Rubrique}}
|
|
|
</div>
|
|
|
<h2 :id="`chapitres${edge.node.id}`" class="chapter-title ">{{edge.node.Titre}}</h2>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <h2 :id="`chapitres${edge.node.id}`" class="chapter-title breakBefore">{{edge.node.Titre}}</h2>
|
|
|
+ <h2 :id="`chapitres${edge.node.id}`" class="chapter-title">{{edge.node.Titre}}</h2>
|
|
|
</div>
|
|
|
<VueMarkdown class="chapter-content justify">{{edge.node.Contenu}}
|
|
|
</VueMarkdown>
|
|
@@ -67,10 +67,19 @@
|
|
|
<div class="blank-page" />
|
|
|
<!-- Sections -->
|
|
|
<div v-for="edge in orderBy($page.sections.edges,'node.Ordre')">
|
|
|
+ <div v-if="edge.node.espace" class="blank-page no-folio breakBeforeLeft" />
|
|
|
<h2 :id="`chapitres${edge.node.id}`" class="section-title canbreak">{{edge.node.Titre}}</h2>
|
|
|
- <VueMarkdown class="chapter-content justify">{{edge.node.Contenu}}
|
|
|
+ <VueMarkdown class="chapter-content">{{edge.node.Contenu}}
|
|
|
</VueMarkdown>
|
|
|
</div>
|
|
|
+ <!-- Credits -->
|
|
|
+ <div class="credits canbreak">
|
|
|
+ <div class="credit" v-for="(edge,index) in $page.credits.edges.slice().reverse()" :key="`credits-${edge.node.id}`">
|
|
|
+ <h4 v-html="edge.node.Role"/>
|
|
|
+ <VueMarkdown lang="fr" class="section-content">{{ edge.node.Nom }}</VueMarkdown>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="blank-page no-folio fill-green" />
|
|
|
</Layout>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -78,8 +87,6 @@ const axios = require('axios'),
|
|
|
path = require('path'),
|
|
|
param = require(`../../param.JSON`);
|
|
|
|
|
|
-
|
|
|
-
|
|
|
import {
|
|
|
Previewer
|
|
|
} from 'pagedjs'
|
|
@@ -154,6 +161,7 @@ export default {
|
|
|
Titre
|
|
|
Contenu
|
|
|
Ordre
|
|
|
+ espace
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -179,6 +187,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ credits: allCredits {
|
|
|
+ edges {
|
|
|
+ node {
|
|
|
+ id
|
|
|
+ Role
|
|
|
+ Nom
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
</page-query>
|
|
|
<static-query>
|