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

index.html « layouts - github.com/darshanbaral/kitab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94cb137404a2ff6f40832d8a123e9b15bc0e1c86 (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
39
40
41
42
{{ define "main" }}
  <div class="site-title text-center">
    <h1>
      {{ .Title }}
    </h1>
  </div>
  <div class="d-flex flex-row justify-content-center row">
    {{ range .Site.Sections.ByWeight }}
    <div class="m-2 p-2 border border-primary rounded" style="min-width: 300px; width: 40%;">
      <a href="{{ .Permalink }}">
        <h3 class="mb-0 p-0">
          {{ .Title | markdownify }}
        </h3>
      </a>
      <div class="text-right">
      <small>
          - {{ .Params.author }} ({{ .Date.Format (default "2006-May-13" $.Site.Params.dateFormat) }})
        </small>
      </div>
      <ul class="list-unstyled ml-1 mb-0 border-top border-primary pt-2">
        {{ range first 5 .Pages }}
        <li>
          <a href="{{ .Permalink }}">
            <h4>
              {{ .Title }}
            </h4>
          </a>
        </li>
        {{ end }}
      </ul>
      {{ $pageNums := len .Pages }}
      {{ if ge $pageNums 6 }}
      <p class="text-right mb-0">
        <a href="{{ .Permalink }}">
          ...more
        </a>
      </p>
      {{ end }}
    </div>
    {{ end }}
  </div>
{{ end }}