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
23 lines
633 B
PHP
23 lines
633 B
PHP
<?php if (!empty($pageContent)): ?>
|
|
<article class="list-intro">
|
|
<?= $pageContent ?>
|
|
</article>
|
|
<?php endif; ?>
|
|
|
|
<section>
|
|
<ul class="compact-list">
|
|
<?php foreach ($items as $item): ?>
|
|
<li>
|
|
<a href="<?= htmlspecialchars($item['url']) ?>">
|
|
<strong><?= htmlspecialchars($item['title']) ?></strong>
|
|
<?php if (($metadata['show_date'] ?? true) && !empty($item['date'])): ?>
|
|
<time><?= htmlspecialchars($item['date']) ?></time>
|
|
<?php endif; ?>
|
|
</a>
|
|
<?php if (!empty($item['summary'])): ?>
|
|
<p><?= htmlspecialchars($item['summary']) ?></p>
|
|
<?php endif; ?>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</section>
|