summaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
blob: b33c56625555cc1b575ef38c3ccf8f0effc27d23 (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
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang }}" {{- with partialCached "func/GetLanguageDirection" "GetLanguageDirection" }} dir="{{ . }}" {{- end }}>
    {{- partial "head.html" . -}}
    <body class="theme-base-{{ .Site.Params.color_scheme }}">
        <!-- This if statement decides which sidebar to use -->
        {{- if .Params.toc -}}
            {{- partial "sidebar-toc.html" . -}}
        {{- else -}}
            {{- partial "sidebar.html" . -}}
        {{- end -}}

        <!--
            Wrap is the content to shift when toggling the sidebar.
            We wrap the content to avoid any CSS collisions with our
            real content.
        -->
        <div class="wrap">
            <header class="masthead">
                <div class="container">
                    <h3 class="masthead-title">
                        <a href="{{ .Site.Home.RelPermalink }}" title="Home">{{ .Site.Title }}</a>
                        <br><small>{{ .Site.Params.tagline }}</small>
                    </h3>
                </div>
            </header>

            <main class="container content" id="main">
                {{- block "main" . }}{{- end }}
            </main>
        </div>

        <label for="sidebar-checkbox" class="sidebar-toggle"></label>

        {{- partial "scripts.html" . -}}
    </body>
</html>