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>
|
</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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue