summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-02 18:28:02 +0800
committerEltrac <hi@guhub.cn>2025-04-02 18:28:02 +0800
commitbbedeb0eaf43472ea51fbdbf76aec420e8045e8b (patch)
tree3407cf16fc155461cf9298a3a44715efc97233b5 /layouts/index.html
parentebfe153b8527ba7feb5b6826dfd75168fb683a1c (diff)
parent5b17aaa86f546e12ffdaee4e1417eca020b5b565 (diff)
Merge branch 'master' of https://github.com/BigCoke233/geek-death-project
Former-commit-id: 2fce6568356f731fed20198efc886f936b4a38f8
Diffstat (limited to 'layouts/index.html')
-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 }}