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

chapterMenu.html « partials « layouts - github.com/darshanbaral/kitab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ffd1c01fb143f912d16ed7a724f383f0defef68b (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
<div class="position-relative">
  <i
    class="nav-menu hover-menu ml-2 mr-2 mt-1 fas fa-bars"
    onclick="expandMenu(this)"
    title = "Show Chapters"
  ></i>
  <div
    class="show bg-light shadow"
    style="
      position: absolute;
      min-width: 280px;
      max-width: 75%;
      z-index: 1;
      max-height: 0px;
      overflow: hidden;"
  >
    <div class="p-2 rounded">
      <b class="mt-3">
        {{ $thisSection := .Site.GetPage "section" .Section }}
        {{ with $thisSection }}
        {{ .Title | markdownify }}
        {{ end }}
      </b>
      <ul class="list-unstyled ml-1">
        {{ $mypages := intersect (where .Site.Pages "Section" .Section) (where .Site.Pages "Kind" "page") }}
        {{ range $mypages }}
        <li class="hanging">
          <a href="{{ .Permalink }}">{{ .Title | markdownify}}</a>
        </li>
        {{ end }}
      </ul>
    </div>
  </div>
</div>