aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/term.html
diff options
context:
space:
mode:
authoryingyu5658 <i@yingyu5658.me>2025-12-13 08:33:08 +0800
committeryingyu5658 <i@yingyu5658.me>2025-12-13 08:33:08 +0800
commit1e5f8eb33bc41cb59faf059e83701152785cabea (patch)
tree45867273ac2178285be840764f7962d2b55556c6 /layouts/_default/term.html
downloadblog-1e5f8eb33bc41cb59faf059e83701152785cabea.tar.gz
blog-1e5f8eb33bc41cb59faf059e83701152785cabea.zip
Initial commit
Diffstat (limited to 'layouts/_default/term.html')
-rw-r--r--layouts/_default/term.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
new file mode 100644
index 0000000..0d55fc1
--- /dev/null
+++ b/layouts/_default/term.html
@@ -0,0 +1,36 @@
+{{ define "main" }}
+<div class="taxonomy-term">
+ <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>
+{{ end }}