fix: HTML 重构两行 flex 布局 — 标题+日期同行居中,作者+评论同行居中

This commit is contained in:
2026-05-17 11:18:39 +08:00
parent 52f3a71800
commit c6ba626aac
2 changed files with 17 additions and 15 deletions
+10 -8
View File
@@ -30,14 +30,16 @@ $total_pages = ceil($total / $per_page);
</div>
<?php endif; ?>
<div class="article-item__main">
<span class="article-title"><?php the_title(); ?></span>
<span class="article-item__author"><?php echo get_avatar(get_the_author_meta('ID'), 14, '', '', array('class' => 'article-avatar')); ?> <?php the_author_meta('display_name'); ?></span>
</div>
<div class="article-item__meta">
<span class="article-item__date"><?php echo get_the_date('Y-m-d'); ?></span>
<div class="article-item__stats">
<span class="article-item__comments">💬 <?php echo (int) get_comments_number(); ?></span>
<span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span>
<div class="article-item__title-row">
<span class="article-title"><?php the_title(); ?></span>
<span class="article-item__date"><?php echo get_the_date('Y-m-d'); ?></span>
</div>
<div class="article-item__sub-row">
<span class="article-item__author"><?php echo get_avatar(get_the_author_meta('ID'), 14, '', '', array('class' => 'article-avatar')); ?> <?php the_author_meta('display_name'); ?></span>
<div class="article-item__stats">
<span class="article-item__comments">💬 <?php echo (int) get_comments_number(); ?></span>
<span class="article-item__views">👁 <?php echo (int) kjweji_get_views(); ?></span>
</div>
</div>
</div>
</a>