implémentation de la toc complete pour linear
This commit is contained in:
parent
0de3b29e8b
commit
d51fc592ed
10 changed files with 125 additions and 33 deletions
|
|
@ -84,6 +84,13 @@ $entryTopPos ??= 20;
|
|||
|
||||
<body
|
||||
class="background-grid <?= e($page->fullWidth() == 'true', 'full-width') ?>"
|
||||
data-is_toc="<?php
|
||||
if ($page->bodyBlocks() && $page->bodyBlocks()->isNotEmpty() && preg_match('/<h3>(.*?)<\/h3>/', $page->bodyBlocks())){
|
||||
echo "true";
|
||||
}else{
|
||||
echo "false";
|
||||
}
|
||||
?>"
|
||||
data-template="<?= $page->template() ?>">
|
||||
<button class="theme-toggler" data-theme-toggler>
|
||||
<span class="theme-toggler-icon"></span>
|
||||
|
|
@ -99,4 +106,9 @@ $entryTopPos ??= 20;
|
|||
</h1>
|
||||
</a>
|
||||
</header>
|
||||
<?php snippet('nav') ?>
|
||||
<?php snippet('nav') ?>
|
||||
<?php if ($page->parent() && $page->parent()->parent()->is('textes')){
|
||||
snippet('panel-toc');
|
||||
}
|
||||
?>
|
||||
<div id="nav-overlay"></div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue