{{ define "main" }}
<section class="card page-head">
  <span class="eyebrow">Section</span>
  <h1>{{ .Title }}</h1>
  <div class="prose">{{ .Content }}</div>
</section>

<section class="post-list">
  {{ range .Pages.ByDate.Reverse }}
    <article class="card post-item">
      <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
      <p class="meta">{{ .Date.Format "2006-01-02" }}</p>
      {{ with .Params.tags }}
        <p class="tags">
          {{ range . }}<a class="tag" href="{{ "/tags/" | relURL }}{{ . | urlize }}/#{{ . }}">{{ . }}</a>{{ end }}
        </p>
      {{ end }}
      <p>{{ with .Summary }}{{ . | plainify }}{{ else }}{{ .Params.summary }}{{ end }}</p>
    </article>
  {{ else }}
    <article class="card post-item">
      <p>这个分区还没有内容。</p>
    </article>
  {{ end }}
</section>
{{ end }}
