Ajout des rubriques
This commit is contained in:
+2
-2
@@ -43,7 +43,7 @@
|
||||
<div class="blank-page no-folio"></div>
|
||||
<!-- Chapitres -->
|
||||
<div class="hyphen" v-for="(edge,index) in $page.chapters.edges.slice().reverse()" :key="'chapter'+edge.node.id">
|
||||
<h2 v-bind:id="'chapter'+edge.node.id" class="chapter-title" v-bind:class="{ canbreak: isNotFirst(index) }" >{{ edge.node.titre }}</h2>
|
||||
<h2 v-bind:data-rubrique="edge.node.rubrique" v-bind:id="'chapter'+edge.node.id" class="chapter-title" v-bind:class="{ canbreak: isNotFirst(index) }" >{{ edge.node.titre }}</h2>
|
||||
<VueMarkdown lang="fr" class="chapter-content justify">{{edge.node.contenu}}</VueMarkdown>
|
||||
</div>
|
||||
<!-- Notes de fin de document -->
|
||||
@@ -74,7 +74,7 @@
|
||||
<page-query>
|
||||
{
|
||||
chapters : allchapitres{
|
||||
edges{node{id,titre,contenu}}
|
||||
edges{node{id,titre,contenu,rubrique}}
|
||||
}
|
||||
sections : allsections{
|
||||
edges{node{id,titre,contenu}}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
Pages are usually used for normal pages or for listing items from a GraphQL collection.
|
||||
Add .vue files here to create pages. For example **About.vue** will be **site.com/about**.
|
||||
Learn more about pages: https://gridsome.org/docs/pages
|
||||
|
||||
You can delete this file.
|
||||
Reference in New Issue
Block a user