|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<Layout>
|
|
<Layout>
|
|
<!-- introductions -->
|
|
<!-- introductions -->
|
|
- <div class="v-center grow">
|
|
|
|
|
|
+ <div class="no-folio v-center grow">
|
|
<div v-for="edge in $page.introductions.edges.slice().reverse()" :key="`introductions${edge.node.id}`">
|
|
<div v-for="edge in $page.introductions.edges.slice().reverse()" :key="`introductions${edge.node.id}`">
|
|
<VueMarkdown class="intro">{{edge.node.contenu}}
|
|
<VueMarkdown class="intro">{{edge.node.contenu}}
|
|
</VueMarkdown>
|
|
</VueMarkdown>
|
|
@@ -34,7 +34,7 @@
|
|
<!-- Page de fond -->
|
|
<!-- Page de fond -->
|
|
<div class="column image-cover image-bleed" v-bind:style='{ backgroundImage: `url(https://popsu-rouen-en.strapi.figli.io/uploads/50424a6a43e44551a4faa699f8ef3caa.JPEG)`, }' />
|
|
<div class="column image-cover image-bleed" v-bind:style='{ backgroundImage: `url(https://popsu-rouen-en.strapi.figli.io/uploads/50424a6a43e44551a4faa699f8ef3caa.JPEG)`, }' />
|
|
<!-- Sommaire -->
|
|
<!-- Sommaire -->
|
|
- <div class="column">
|
|
|
|
|
|
+ <div class="no-folio column">
|
|
<div class="section-title still">
|
|
<div class="section-title still">
|
|
Sommaire
|
|
Sommaire
|
|
</div>
|
|
</div>
|
|
@@ -169,6 +169,21 @@ export default {
|
|
}
|
|
}
|
|
page.parentNode.removeChild(page);
|
|
page.parentNode.removeChild(page);
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ let empty = layouts.filter(l=>{
|
|
|
|
+ if(l.firstChild){
|
|
|
|
+ if(l.firstChild.innerHTML.length == 0 && l.firstChild.classList.length == 0) return true;
|
|
|
|
+ }
|
|
|
|
+ if(l.innerHTML.length != 0) return false;
|
|
|
|
+ return true;
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ empty.forEach((item, i) => {
|
|
|
|
+ let page = item.closest(".pagedjs_page");
|
|
|
|
+ page.parentNode.removeChild(page);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
// Chercher le dernier paragraphe
|
|
// Chercher le dernier paragraphe
|
|
let p = Array.from(document.querySelectorAll(".chapter-content"));
|
|
let p = Array.from(document.querySelectorAll(".chapter-content"));
|
|
p[p.length-1].classList.add("last-chapter-p");
|
|
p[p.length-1].classList.add("last-chapter-p");
|