Update list template structure to use semantic section element
This commit is contained in:
parent
2cf9839152
commit
673ff9400d
1 changed files with 3 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
</article>
|
||||
<?php endif; ?>
|
||||
|
||||
<article>
|
||||
<section>
|
||||
<?php foreach ($items as $item): ?>
|
||||
<article>
|
||||
<?php if ($item['cover']): ?>
|
||||
|
|
@ -26,10 +26,10 @@
|
|||
<a href="<?= htmlspecialchars($item['url']) ?>" class="button">Les mer</a>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<style>
|
||||
main > article {
|
||||
main > section {
|
||||
> article {
|
||||
background-color: white;
|
||||
padding: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue