aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/term.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/term.html')
-rw-r--r--layouts/_default/term.html44
1 files changed, 15 insertions, 29 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index 0d55fc1..f074844 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,36 +1,22 @@
{{ define "main" }}
<div class="taxonomy-term">
- <h2>{{ .Title }}</h2>
+ <h2>{{ .Title }}</h2>
- <div class="posts-list">
- {{ range .Pages }}
+ <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>
+ <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>
+ {{ else }}
+ <p>该分类下还没有文章。</p>
+ {{ end }}
+ </div>
</div>
{{ end }}