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