summaryrefslogtreecommitdiff
path: root/themes/JustZvan/layouts/section.html
blob: 1712416e50331c6de50b97c461b8e887d503a6a9 (plain)
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" }}
  <div class="list-page">
    <h1 class="page-title">{{ .Title }}</h1>
    {{ with .Content }}
      <div class="page-content">{{ . }}</div>
    {{ end }}
    
    <div class="post-list">
      {{ range .Pages }}
        <article class="post-list-item">
          {{ if .Date }}
            <div class="post-list-meta">
              {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
              {{ $dateHuman := .Date | time.Format "2006-01-02" }}
              <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
            </div>
          {{ end }}
          <h2 class="post-list-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
          {{ with .Params.subtitle }}
            <div class="post-list-summary">{{ . }}</div>
          {{ end }}
        </article>
      {{ end }}
    </div>
  </div>
{{ end }}