Ajout des cÃréditsÃ
This commit is contained in:
+2
-1
@@ -11,6 +11,7 @@
|
|||||||
"search": [
|
"search": [
|
||||||
"introductions",
|
"introductions",
|
||||||
"chapitres",
|
"chapitres",
|
||||||
"sections"
|
"sections",
|
||||||
|
"credits"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,11 @@
|
|||||||
.credits {
|
.credits {
|
||||||
font-size: 9pt;
|
font-size: 9pt;
|
||||||
margin-bottom: 6pt;
|
margin-bottom: 6pt;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
font-family: "TextaAlt";
|
font-family: "TextaAlt";
|
||||||
|
|||||||
+19
-3
@@ -52,7 +52,7 @@
|
|||||||
<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 class="blank-page no-folio breakBeforeLeft" />
|
||||||
<div v-if="edge.node.Rubrique">
|
<div v-if="edge.node.Rubrique">
|
||||||
<div class="section-title" >
|
<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>
|
||||||
@@ -72,6 +72,14 @@
|
|||||||
<VueMarkdown class="chapter-content">{{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>
|
||||||
@@ -79,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'
|
||||||
@@ -181,6 +187,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
credits: allCredits {
|
||||||
|
edges {
|
||||||
|
node {
|
||||||
|
id
|
||||||
|
Role
|
||||||
|
Nom
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</page-query>
|
</page-query>
|
||||||
<static-query>
|
<static-query>
|
||||||
|
|||||||
Reference in New Issue
Block a user