aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/docs/baseof.html54
-rw-r--r--layouts/partials/docs/header.html6
-rw-r--r--layouts/partials/docs/html-head.html5
-rw-r--r--layouts/partials/docs/menu-bundle.html (renamed from layouts/partials/docs/nav-bundle.html)0
-rw-r--r--layouts/partials/docs/menu-filetree.html (renamed from layouts/partials/docs/nav-filetree.html)2
-rw-r--r--layouts/partials/docs/nav-brand.html3
6 files changed, 30 insertions, 40 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index 94f8cd4..7eb4326 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -7,37 +7,39 @@
</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>
+ <input type="checkbox" style="display: none" id="menu-control" />
+ <div class="content">
- <div>
-
- <div class="pure-g content">
- <div class="pure-u-1 pure-u-lg-2-3 page markdown">
- {{- .Content -}}
+ <div class="menu">
+ <nav role="navigation">
+ {{ partial "docs/inject/nav-before" . }}
+
+ {{ if .Site.Params.BookMenuBundle }}
+ {{ partial "docs/menu-bundle" . }}
+ {{ else }}
+ {{ partial "docs/menu-filetree" . }}
+ {{ end }}
+
+ {{ partial "docs/inject/nav-after" . }}
+ </nav>
+ </div>
+
+ <div class="page">
+ <div class="header">
+ <label for="menu-control"><img src="/svg/menu.svg" /></label>
</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 class="markdown">
+ {{- .Content -}}
</div>
- {{ end }}
</div>
+ {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
+ {{ if and ($showToC) (.Page.TableOfContents) }}
+ <div class="toc">
+ {{ partial "docs/toc" . }}
+ </div>
+ {{ end }}
+
</div>
{{ partial "docs/inject/body" . }}
diff --git a/layouts/partials/docs/header.html b/layouts/partials/docs/header.html
deleted file mode 100644
index aab1fcb..0000000
--- a/layouts/partials/docs/header.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<label for="nav-control">
- <img src="/svg/menu.svg" />
-</label>
-<h3>
- <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
-</h3> \ No newline at end of file
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index fe09dd0..1da298c 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -3,10 +3,7 @@
<title>{{- template "title" . }} | {{ .Site.Title -}}</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,700" rel="stylesheet">
-<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/base-min.css">
-<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-min.css">
-<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css">
-
+<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css">
{{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.Permalink }}"> \ No newline at end of file
diff --git a/layouts/partials/docs/nav-bundle.html b/layouts/partials/docs/menu-bundle.html
index bdabefd..bdabefd 100644
--- a/layouts/partials/docs/nav-bundle.html
+++ b/layouts/partials/docs/menu-bundle.html
diff --git a/layouts/partials/docs/nav-filetree.html b/layouts/partials/docs/menu-filetree.html
index 3ec4539..490c350 100644
--- a/layouts/partials/docs/nav-filetree.html
+++ b/layouts/partials/docs/menu-filetree.html
@@ -8,7 +8,7 @@
{{ define "book-section" }} <!-- Single section of menu (recursive) -->
<ul>
{{ range .Section.Sections }}
- <li {{- if .Params.bookrootsection}} class="root-section" {{ end }}>
+ <li {{- if .Params.bookrootsection}} class="section" {{ end }}>
{{- if .Content -}}
{{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }}
{{- else -}}
diff --git a/layouts/partials/docs/nav-brand.html b/layouts/partials/docs/nav-brand.html
deleted file mode 100644
index 5a2c9cb..0000000
--- a/layouts/partials/docs/nav-brand.html
+++ /dev/null
@@ -1,3 +0,0 @@
-<h2 class="book-brand">
- <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
-</h2> \ No newline at end of file