aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/list.html
blob: 3992a018170512428ae52c170175076319acada8 (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
{{ define "main" }}
<content>

  <ul class="blog-posts">
    {{ $currentYear := 0 }} {{ range .Pages }} {{ if and (not .Params.hidden)
    (not (in .Params.categories "往昔")) }}

    <li>
      <span
        class="{{ if .Site.Params.groupByYear }} grouped {{ else }} ungrouped {{ end }}"
      >
        <i>
          <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
            {{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
          </time>
        </i>
      </span>
      <a href="{{ .Permalink }}">{{ .Title }}</a>
    </li>

    {{ end }} {{ else }}
    <li>No posts yet</li>
    {{ end }}
  </ul>
</content>
{{ end }}