diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-02 13:46:07 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-02 13:46:07 +0800 |
| commit | 8a1bde960bf31c52327a17fbd9df0bdfa23b61c4 (patch) | |
| tree | aa8f766518be18735028ae95b99057c4326df721 | |
| parent | d19a8560dabb8bc5b98f00b834aa799e3b3109f3 (diff) | |
fix: gap between title and summary is too long
| -rw-r--r-- | layouts/index.html | 6 |
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 }} |
