Refactor post list metadata display: use flexbox for alignment and add reading time

This commit is contained in:
interlope committed 2026-06-01 16:20:32 +02:00
1 parent 4a5655d4dd
commit d48f5227c3
2 files changed
+15 -3

No files matched your search

+9 -2
View File
@@ -788,10 +788,17 @@ img.nav-svg-icon {
color: var(--text-secondary);
}
.post-list-date {
display: block;
.post-list-meta {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--text-muted);
font-size: var(--font-size-sm);
white-space: nowrap;
}
.post-list-meta .bi {
margin-right: 0.25rem;
}
.post-list-item .post-taxonomy {
+6 -1
View File
@@ -53,7 +53,12 @@
<a href="<?php echo $page->permalink(); ?>">
<h2 class="post-list-title"><?php echo $page->title(); ?></h2>
</a>
<span class="post-list-date"><?php echo $page->date(); ?></span>
<div class="post-list-meta">
<span><i class="bi bi-calendar3"></i><?php echo $page->date(); ?></span>
<?php if (!$page->isStatic()) : ?>
<span><i class="bi bi-clock-history"></i><?php echo $page->readingTime(); ?></span>
<?php endif ?>
</div>
</div>
<!-- Tags and Category -->