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

archive.html « section « layouts - github.com/darshanbaral/ghazal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c648200612c62795377c1175f6053f788ffe0e9 (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
{{ define "main" }}
<h1 style="margin: 0 0 0.5em 0;">{{ .Title }}</h1>
{{$paginator := .Paginate (where .Site.Pages "Kind" "page").ByDate.Reverse 50 }}
<table style="width: 100%;">
  <thead>
    <tr>
      <th>Date</th>
      <th>Title</th>
      <th>Section</th>
    </tr>
  </thead>
  <tbody>
    {{ range $paginator.Pages }}
    <tr>
      <td>
        <time>{{- dateFormat .Site.Params.theme.dateFormat .Date }}</time>
      </td>
      <td><a href="{{ .Permalink }}">{{ .Title }}</a></td>
      <td><a href="{{ .Section | relURL }}">{{ (.Site.GetPage .Section).Title }}</a></td>
    </tr>
    {{ end }}
  </tbody>
</table>

{{ end }}