actuel-inactuel/site/templates/home.php
isUnknown 6c1a8c8850 side-panel : refactor nav + toc into single side-panel with view switching
Rename nav.php to side-panel.php to host both navigation and table of contents
views. The panel uses data-view attributes to switch between nav and toc content.
Footer buttons updated to target the unified panel. TOC button now visible on desktop.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 09:28:47 +01:00

27 lines
No EOL
856 B
PHP

<?php snippet('header') ?>
<main>
<article>
<?php snippet('cover', slots: true) ?>
<?php slot('title') ?>
<a
href="#main-edito"
class="no-underline home-baseline"
title="lire l'éditorial"
>
<h2 class="main-title <?= setTitleFontSizeClass($site->subtitle()) ?>"><?= $site->subtitle()->inline() ?></h2>
</a>
<a href="#main-edito" class="main-edito-btn | no-underline" title="lire l'éditorial">
<p
class="oggle-btn toggle-btn--left"
>éditorial</p>
</a>
<button class="plus" data-open-panel="side-panel" data-view="nav" title="ouvrir la navigation">textes</button>
<?php endslot() ?>
<?php endsnippet() ?>
<div id="main-edito" id="main-content">
<?= $site->edito() ?>
</div>
</article>
</main>
<?php snippet('footer') ?>