Welcome to mirror list, hosted at ThFree Co, Russian Federation.

post.html « section « layouts - github.com/damiencaselli/paperback.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b97ce869f01d0e442957e7648d71017b34ec68bf (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
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">

  {{ partial "head.html" . }}

  <body>
    <div class="container">

      {{ partial "header.html" . }}

      <article>

        {{ range (where .Data.Pages "Type" "post").GroupByDate "2006/01" -}}
        <section>
          <h2>{{ .Key }}</h2>

          <ol>
            {{ range .Pages -}}
            <li>
              {{ .Render "list-item" }}
            </li>
            {{ end }}
          </ol>
        </section>
        {{ end }}

      </article>

      {{ partial "nav.html" . }}

      {{ partial "footer.html" . }}

    </div>

  {{ partial "highlight" . }}

  </body>
</html>