aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/term.html
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-05-31 16:36:13 +0800
committerverdant <im@verdant.ee>2026-05-31 16:36:13 +0800
commitd91f48c4945acd1b9f76a79d7804580b70b0c2df (patch)
tree6844217a5b61d31d6d2a837fb708db411825bc5c /layouts/_default/term.html
parent7876c3763897092266e535cd464d45637862d73b (diff)
downloadblog-d91f48c4945acd1b9f76a79d7804580b70b0c2df.tar.gz
blog-d91f48c4945acd1b9f76a79d7804580b70b0c2df.zip
Refactor: remove bloated CSS style and nested HTML layouts
Diffstat (limited to 'layouts/_default/term.html')
-rw-r--r--layouts/_default/term.html31
1 files changed, 12 insertions, 19 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index f074844..a76a935 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,22 +1,15 @@
{{ define "main" }}
-<div class="taxonomy-term">
- <h2>{{ .Title }}</h2>
+<main>
+ <h2>{{ .Title }}</h2>
- <div class="posts-list">
- {{ range .Pages }}
-
- <li style="list-style-type: none; margin-bottom: 12px">
- <span class="post-date" {{ if .Site.Params.groupByYear }}grouped{{ else }}ungrouped{{ end }}>
- <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
- {{ .Date.Format "2006-01-02" }}
- </time>
- </span>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
- </li>
-
- {{ else }}
- <p>该分类下还没有文章。</p>
- {{ end }}
- </div>
-</div>
+ <ul class=blog-posts>
+ {{ range .Pages }}
+ <li>
+ <time datetime={{ .Date.Format "2006-01-02" }}>{{ .Date.Format "2006-01-02" }}</time>
+ <a href={{ .Permalink }}>{{ .Title }}</a>
+ {{ else }}
+ <p>该分类下还没有文章。</p>
+ {{ end }}
+ </ul>
+</main>
{{ end }}