aboutsummaryrefslogtreecommitdiff
path: root/layouts/docs/baseof.html
blob: 9beb2618394cc022ba2256089055a38f00e062ea (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
43
44
45
46
47
48
49
50
<!DOCTYPE html>
{{- partial "docs/shared" -}}
<html>
<head>
  {{ partial "docs/html-head" . }}
  {{ partial "docs/inject/head" . }}
</head>

<body>
  <input type="checkbox" style="display: none" id="menu-control" />
  <div class="container">

    <aside class="menu fixed">
      <nav role="navigation">
        <h2 class="brand">
          <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
        </h2>
        {{ partial "docs/inject/menu-before" . }}
        
        {{ if .Site.Params.BookMenuBundle }}
          {{ partial "docs/menu-bundle" . }}
        {{ else }}
          {{ partial "docs/menu-filetree" . }}
        {{ end }}
      
        {{ partial "docs/inject/menu-after" . }}
      </nav>
    </aside>

    <div class="page">
      <div class="header">
        {{ partial "docs/mobile-header" . }}
      </div>
      <article class="markdown">
        {{- .Content -}}
      </article>
    </div>

    {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
    {{ if and ($showToC) (.Page.TableOfContents) }}
    <aside class="toc fixed">
      {{ partial "docs/toc" . }}
    </aside>
    {{ end }}

  </div>

  {{ partial "docs/inject/body" . }}
</body>
</html>