début de mise en place de la toc. le design reste à voir
This commit is contained in:
parent
e210ed40f6
commit
0de3b29e8b
7 changed files with 44 additions and 2 deletions
|
|
@ -8,6 +8,9 @@ $isOpen ??= false;
|
|||
<?= $slots->title() ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php if ($page->parent()->parent()->is('textes')){
|
||||
snippet('toc', ["content" => $page->bodyBlocks()->toBlocks()]);
|
||||
} ?>
|
||||
<?php if ($slots->text()): ?>
|
||||
<div class="text-wrapper">
|
||||
<?= $slots->text() ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue