56 lines
No EOL
2.2 KiB
PHP
56 lines
No EOL
2.2 KiB
PHP
<?php snippet('head') ?>
|
|
<?php $sizes = "(min-width: 1200px) 25vw,
|
|
(min-width: 900px) 33vw,
|
|
(min-width: 600px) 50vw,
|
|
100vw";
|
|
?>
|
|
<header id="interface-header" w3-include-html="assets/pagedjs/interface.html"></header>
|
|
<div id="render-book"></div>
|
|
<template id="book-content">
|
|
|
|
<section class="cover">
|
|
<h1><?= $site->title()->html()?></h1>
|
|
</section>
|
|
|
|
<section class="toc">
|
|
<h2>Sommaire</h2>
|
|
<article id="table-of-contents"></article>
|
|
</section>
|
|
|
|
<?php foreach($site->index()->filterBy('intendedTemplate', 'chapitre')->listed() as $chapitre):?>
|
|
<section class="chapter">
|
|
<?php if($cover = $chapitre->cover()->toFile()):?>
|
|
<div class="interpage full-bleed-image full-page">
|
|
<figure>
|
|
<img src="<?= $cover->url() ?>" alt="">
|
|
</figure>
|
|
</div>
|
|
<?php endif;?>
|
|
<div class="chapter-title">
|
|
<div class="ascii-fill fill-top"></div>
|
|
|
|
<h2><?= $chapitre->title()->html()->smartypants() ?></h2>
|
|
<h3><?= $chapitre->author()->html()->smartypants() ?></h3>
|
|
|
|
<div class="ascii-fill fill-mid"></div>
|
|
|
|
<div class="biographie">
|
|
<p>Biographie Nus adit pressit et rem dolor ratibus. Ut atem et res ab id ut est lit, iscia cum que am verum sapici dolestorpora placeat laborit asinctate omnihilis aspelen dicatusam voluptae eum ipsandit undempos aut et laceptati omniminveris quam sim qui corem harum qui invenihita volorer sperumquas el mi, tectota tesequu ntioneserit, corem qui as earchit ipis di cum litios pro conse perspel ipsae eturi unt, sundae enimus aut ut endero cumquam faccatem duci quo quatqua meturion event fuga. Et volore videndia solorro runtis doluptas rem netum aborporaepro te quos raes at. Haritas sim quam, soluptate venem quam, earum vendunte omnisi ad endebisqui opta vel magnam conseditas eicia ditibearum rem explabo.</p>
|
|
</div>
|
|
|
|
<div class="ascii-fill fill-bottom"></div>
|
|
</div>
|
|
|
|
<div class="chapter-content">
|
|
<?php foreach ($chapitre->text()->toBlocks() as $block): ?>
|
|
<div id="<?= $block->id() ?>" class="block block-type-<?= $block->type() ?>">
|
|
<?= $block ?>
|
|
</div>
|
|
<?php endforeach ?>
|
|
</div>
|
|
|
|
</section>
|
|
<?php endforeach;?>
|
|
|
|
</template>
|
|
<?php snippet('footer');?>
|