Tighten the title-to-date gap

This commit is contained in:
2026-11-15 20:34:07 +08:00
parent 41cb0b6722
commit 0639b401d1
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -85,6 +85,11 @@ kbd {
margin-top: 0.125rem;
}
/* 文章页:标题到日期的间距,比原来紧一点,让标题和日期成一组 */
.post-meta {
margin-top: 0.5rem;
}
/* 文章页:面包屑到标题的间距,与 /blog/ 列表页保持一致(14px) */
.post-title-row {
margin-top: 0.875rem;
+1 -1
View File
@@ -23,7 +23,7 @@
</div>
{{ end }}
<div
class="hx:mt-4 hx:mb-8 hx:text-gray-500 hx:dark:text-gray-400 hx:text-sm hx:flex hx:items-center hx:flex-wrap hx:gap-y-2"
class="post-meta hx:mb-8 hx:text-gray-500 hx:dark:text-gray-400 hx:text-sm hx:flex hx:items-center hx:flex-wrap hx:gap-y-2"
>
{{- with $date := .Date }}<span class="hx:mr-1"
>{{ partial "utils/format-date" $date }}</span