correction nav
All checks were successful
Deploy / Deploy to Production (push) Successful in 5m24s

This commit is contained in:
Julie Blanc 2026-02-14 16:05:22 +01:00
parent 8ec9928ab9
commit 58ed1a3fb8
2 changed files with 17 additions and 28 deletions

View file

@ -6,9 +6,11 @@ de la vérité et de la justice.</p>
<span class="icon"><?= svg('assets/icons/search.svg') ?></span>
<input type="text" id="search" class="input" placeholder="Rechercher" list="keywords-list">
<datalist id="keywords-list">
<?php foreach (page('database')->keywords()->split() as $keyword): ?>
<option value="<?= esc($keyword) ?>">
<?php endforeach ?>
<?php if ($db = page('database')): ?>
<?php foreach ($db->keywords()->split() as $keyword): ?>
<option value="<?= esc($keyword) ?>">
<?php endforeach ?>
<?php endif ?>
</datalist>
</form>