Ajout des sections
This commit is contained in:
@@ -8,7 +8,6 @@ module.exports = function(api) {
|
|||||||
actions.addMetadata(d, param.meta[d])
|
actions.addMetadata(d, param.meta[d])
|
||||||
}
|
}
|
||||||
if (!param.search) throw "Nothing to search for";
|
if (!param.search) throw "Nothing to search for";
|
||||||
// Ajout des recherches
|
|
||||||
let search = param.search.map(s => {
|
let search = param.search.map(s => {
|
||||||
return axios.get(`${param.source}${s}`);
|
return axios.get(`${param.source}${s}`);
|
||||||
});
|
});
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"title": "The performative metropolis?",
|
"title": "the performative metropolis?",
|
||||||
"subtitle": "NARRATIVES AND SCALES IN THE METROPOLITAN INSTITUTIONAL PRODUCTION OF ROUEN",
|
"subtitle": "NARRATIVES AND SCALES IN THE METROPOLITAN INSTITUTIONAL PRODUCTION OF ROUEN",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Jean Debrie",
|
"Jean Debrie",
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
},
|
},
|
||||||
"source": "https://popsu-rouen-en.strapi.figli.io/",
|
"source": "https://popsu-rouen-en.strapi.figli.io/",
|
||||||
"search": [
|
"search": [
|
||||||
|
"images",
|
||||||
"introductions",
|
"introductions",
|
||||||
"chapitres",
|
"chapitres",
|
||||||
"sections"
|
"sections"
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
|
|
||||||
.no-folio {
|
.no-folio {
|
||||||
page: nofolio;
|
page: nofolio;
|
||||||
|
page-break-before: avoid !important;
|
||||||
|
page-break-inside: avoid !important;
|
||||||
|
page-break-after: avoid !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blank-page {
|
.blank-page {
|
||||||
|
|||||||
+33
-1
@@ -60,7 +60,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-for="edge in $page.chapitres.edges.slice().reverse()" :key="`chapitres${edge.node.id}`">
|
<!-- Chapitres -->
|
||||||
|
|
||||||
|
<div v-for="edge in $page.chapitres.edges.slice().reverse()" :key="`chapitre${edge.node.id}`">
|
||||||
<h2
|
<h2
|
||||||
:id="`chapitres${edge.node.id}`"
|
:id="`chapitres${edge.node.id}`"
|
||||||
class="chapter-title canbreak"
|
class="chapter-title canbreak"
|
||||||
@@ -71,6 +73,26 @@
|
|||||||
</VueMarkdown>
|
</VueMarkdown>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Page blanche -->
|
||||||
|
|
||||||
|
<div class="blank-page no-folio" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Sections -->
|
||||||
|
|
||||||
|
|
||||||
|
<div v-for="edge in $page.sections.edges.slice().reverse()" :key="`section${edge.node.id}`">
|
||||||
|
<h2
|
||||||
|
:id="`chapitres${edge.node.id}`"
|
||||||
|
class="section-title canbreak"
|
||||||
|
>{{edge.node.Titre}}</h2>
|
||||||
|
<VueMarkdown
|
||||||
|
class="chapter-content justify"
|
||||||
|
>{{edge.node.Contenu}}
|
||||||
|
</VueMarkdown>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</Layout>
|
</Layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -93,6 +115,16 @@ export default {
|
|||||||
|
|
||||||
<page-query>
|
<page-query>
|
||||||
query {
|
query {
|
||||||
|
sections: allSections {
|
||||||
|
edges {
|
||||||
|
node {
|
||||||
|
id
|
||||||
|
Titre
|
||||||
|
Contenu
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
chapitres: allChapitres {
|
chapitres: allChapitres {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
|
|||||||
Reference in New Issue
Block a user