|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<Layout>
|
|
|
<!-- 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}`">
|
|
|
<VueMarkdown class="intro">{{edge.node.contenu}}
|
|
|
</VueMarkdown>
|
|
@@ -34,7 +34,7 @@
|
|
|
<!-- 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)`, }' />
|
|
|
<!-- Sommaire -->
|
|
|
- <div class="column">
|
|
|
+ <div class="no-folio column">
|
|
|
<div class="section-title still">
|
|
|
Sommaire
|
|
|
</div>
|
|
@@ -169,6 +169,21 @@ export default {
|
|
|
}
|
|
|
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
|
|
|
let p = Array.from(document.querySelectorAll(".chapter-content"));
|
|
|
p[p.length-1].classList.add("last-chapter-p");
|