summaryrefslogtreecommitdiffstats
path: root/layouts/_default/term.html
blob: 0d55fc1214e46cf12c9c2d72d77dd8a4ff346fb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 }}