add anchors strip
This commit is contained in:
parent
01ebd8ed41
commit
a2fd20c1cc
3 changed files with 31 additions and 2 deletions
|
|
@ -1,5 +1,17 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<section class="anchors-strip">
|
||||
<ul>
|
||||
<?php foreach($page->children() as $section): ?>
|
||||
<?php if ($section->isIndexed() != 'false'): ?>
|
||||
<li>
|
||||
<a href="#<?= $section->slug() ?>" title="Défiler jusqu'à la section <?= $section->title() ?>"><?= $section->title() ?></a>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1><?= $page->title() ?></h1>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue