summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-02 13:46:07 +0800
committerEltrac <hi@guhub.cn>2025-04-02 13:46:07 +0800
commit8a1bde960bf31c52327a17fbd9df0bdfa23b61c4 (patch)
treeaa8f766518be18735028ae95b99057c4326df721 /layouts
parentd19a8560dabb8bc5b98f00b834aa799e3b3109f3 (diff)
fix: gap between title and summary is too long
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 1d1c9347..99323bee 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -12,17 +12,17 @@
<time>
{{ .Date.Format "Jan 2" }}
</time>
- <h3>
+ <h3{{ if $firstPost }} style="margin-bottom: 0"{{ end }}>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h3>
</div>
+ {{ with .Params.categories }}
<div class="posts-item-category">
- {{ with .Params.categories }}
<a href="/categories/{{ . }}" style="padding: 0.1rem 0.3rem;">
{{ . }}
</a>
- {{ end }}
</div>
+ {{ end }}
</header>
<!-- 如果是第一篇文章,则显示摘要 -->
{{ if $firstPost }}