Update list template structure to use semantic section element

This commit is contained in:
Ruben 2026-01-17 13:03:23 +01:00
parent 2cf9839152
commit 673ff9400d

View file

@ -4,7 +4,7 @@
</article> </article>
<?php endif; ?> <?php endif; ?>
<article> <section>
<?php foreach ($items as $item): ?> <?php foreach ($items as $item): ?>
<article> <article>
<?php if ($item['cover']): ?> <?php if ($item['cover']): ?>
@ -26,10 +26,10 @@
<a href="<?= htmlspecialchars($item['url']) ?>" class="button">Les mer</a> <a href="<?= htmlspecialchars($item['url']) ?>" class="button">Les mer</a>
</article> </article>
<?php endforeach; ?> <?php endforeach; ?>
</article> </section>
<style> <style>
main > article { main > section {
> article { > article {
background-color: white; background-color: white;
padding: 0; padding: 0;