Remove hero section styles Add CSS reset and variables Improve typography and layout Update base template with CSS versioning Restructure list templates with semantic HTML Add proper container classes Improve code organization and readability
27 lines
755 B
PHP
27 lines
755 B
PHP
<?php if (!empty($pageContent)): ?>
|
|
<article class="list-intro">
|
|
<?= $pageContent ?>
|
|
</article>
|
|
<?php endif; ?>
|
|
|
|
<section>
|
|
<div class="grid">
|
|
<?php foreach ($items as $item): ?>
|
|
<article class="card">
|
|
<?php if (!empty($item['cover'])): ?>
|
|
<img src="<?= htmlspecialchars($item['cover']) ?>" alt="">
|
|
<?php endif; ?>
|
|
|
|
<h3><a href="<?= htmlspecialchars($item['url']) ?>"><?= htmlspecialchars($item['title']) ?></a></h3>
|
|
|
|
<?php if (($metadata['show_date'] ?? true) && !empty($item['date'])): ?>
|
|
<time><?= htmlspecialchars($item['date']) ?></time>
|
|
<?php endif; ?>
|
|
|
|
<?php if (!empty($item['summary'])): ?>
|
|
<p><?= htmlspecialchars($item['summary']) ?></p>
|
|
<?php endif; ?>
|
|
</article>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</section>
|