fix: meta 区日期在上,评论观看数在下(两行布局)

This commit is contained in:
2026-05-17 10:49:46 +08:00
parent c7f731e673
commit 0bdbfc7906
2 changed files with 7 additions and 4 deletions
+2
View File
@@ -35,9 +35,11 @@ $total_pages = ceil($total / $per_page);
</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>
</div>
</a>
<?php endwhile; ?>
</div>
+3 -2
View File
@@ -1,6 +1,6 @@
/*
Theme Name: 空笺未寄
Version: 0.15.2
Version: 0.15.3
Requires at least: 6.0
Requires PHP: 7.4
License: MIT
@@ -276,7 +276,8 @@ body .site { width: 100% !important; }
.article-title { font-size:16px; letter-spacing:0.05em; display:block; }
.article-item__author { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-lighter); margin-top:4px; }
.article-avatar { width:14px !important; height:14px !important; border-radius:50% !important; }
.article-item__meta { display:flex; flex-direction:row; align-items:center; gap:12px; font-size:12px; color:var(--ink-lighter); white-space:nowrap; margin-left:24px; }
.article-item__meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12px; color:var(--ink-lighter); white-space:nowrap; margin-left:24px; }
.article-item__stats { display:flex; gap:10px; }
.article-item__date { font-size:12px; color:var(--ink-lighter); }
.article-item__views { font-size:11px; color:var(--ink-lighter); }