redesign nav panel years

This commit is contained in:
isUnknown 2024-04-09 08:38:29 +02:00
parent 85a6807984
commit a2722a0264
10 changed files with 112 additions and 68 deletions

View file

@ -5,7 +5,7 @@
<?php snippet('cover', slots: true) ?>
<?php slot('title') ?>
<h1 class="main-title <?= setTitleFontSizeClass($page->title()) ?>"><?= $page->title() ?></h1>
<p class="opacity" style="--opacity:.6">catégorie</p>
<p class="opacity-light">catégorie</p>
<?php endslot() ?>
<?php endsnippet() ?>
<div
@ -45,7 +45,7 @@
<ul>
<?php foreach($year->children() as $article): ?>
<?php if ($article->category() == $page->title()->value()) : ?>
<?php snippet('text-item', ['article' => $article]) ?>
<?php snippet('text-item', array('article' => $article)) ?>
<?php endif ?>
<?php endforeach ?>
</ul>