aboutsummaryrefslogtreecommitdiff
path: root/layouts/docs/baseof.html
blob: 94f8cd42c726700924c91b02afb1388ec4270873 (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
<!DOCTYPE html>
{{- partial "docs/shared" -}}
<html>
<head>
  {{ partial "docs/html-head" . }}
  {{ partial "docs/inject/head" . }}
</head>

<body>
  <div class="header">
    {{ partial "docs/header" . }}
  </div>
  
  <input type="checkbox" style="display: none" id="nav-control" />
  <nav role="navigation" class="menu">
    {{ partial "docs/inject/nav-before" . }}
    
    {{ if .Site.Params.BookMenuBundle }}
      {{ partial "docs/nav-bundle" . }}
    {{ else }}
      {{ partial "docs/nav-filetree" . }}
    {{ end }}
  
    {{ partial "docs/inject/nav-after" . }}
  </nav>

  <div>
    
    <div class="pure-g content">
      <div class="pure-u-1 pure-u-lg-2-3 page markdown">
        {{- .Content -}}
      </div>
      {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
      {{ if and ($showToC) (.Page.TableOfContents) }}
      <div class="pure-u-1 pure-u-lg-1-3 pure-hidden-md toc">
        {{ partial "docs/toc" . }}
      </div>
      {{ end }}
    </div>

  </div>

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