summaryrefslogtreecommitdiff
path: root/layouts/partials/book
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/book')
-rw-r--r--layouts/partials/book/html-head-after.html0
-rw-r--r--layouts/partials/book/html-head.html11
-rw-r--r--layouts/partials/book/nav-after.html0
-rw-r--r--layouts/partials/book/nav-before.html0
-rw-r--r--layouts/partials/book/nav-brand.html3
-rw-r--r--layouts/partials/book/nav-bundle.html5
-rw-r--r--layouts/partials/book/nav-tree.html64
-rw-r--r--layouts/partials/book/nav.html5
-rw-r--r--layouts/partials/book/toc.html1
9 files changed, 0 insertions, 89 deletions
diff --git a/layouts/partials/book/html-head-after.html b/layouts/partials/book/html-head-after.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/book/html-head-after.html
+++ /dev/null
diff --git a/layouts/partials/book/html-head.html b/layouts/partials/book/html-head.html
deleted file mode 100644
index b171d7c..0000000
--- a/layouts/partials/book/html-head.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<meta charset="UTF-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,600" rel="stylesheet">
-<link href="/css/pure-min.css" rel="stylesheet">
-<!-- <link href="/css/grids-responsive-min.css" rel="stylesheet"> -->
-
-{{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
-<link rel="stylesheet" href="{{ $styles.Permalink }}">
-
-{{ partial "book/html-head-after" . }} \ No newline at end of file
diff --git a/layouts/partials/book/nav-after.html b/layouts/partials/book/nav-after.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/book/nav-after.html
+++ /dev/null
diff --git a/layouts/partials/book/nav-before.html b/layouts/partials/book/nav-before.html
deleted file mode 100644
index e69de29..0000000
--- a/layouts/partials/book/nav-before.html
+++ /dev/null
diff --git a/layouts/partials/book/nav-brand.html b/layouts/partials/book/nav-brand.html
deleted file mode 100644
index 5a2c9cb..0000000
--- a/layouts/partials/book/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
diff --git a/layouts/partials/book/nav-bundle.html b/layouts/partials/book/nav-bundle.html
deleted file mode 100644
index 46665ad..0000000
--- a/layouts/partials/book/nav-bundle.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<nav role="navigation">
- {{ partial "book/nav-brand" . }}
- {{ with .Site.GetPage .Site.Params.BookMenuBundle }}{{ .Content }}{{ end }}
- {{ partial "book/nav-after" . }}
-</nav>
diff --git a/layouts/partials/book/nav-tree.html b/layouts/partials/book/nav-tree.html
deleted file mode 100644
index b87e944..0000000
--- a/layouts/partials/book/nav-tree.html
+++ /dev/null
@@ -1,64 +0,0 @@
-{{ $bookSection := default "docs" .Site.Params.BookSection }}
-{{ if eq $bookSection "*" }}
- {{ .Scratch.Set "BookSections" .Site.Sections }}
-{{ else }}
- {{ $bookSections := where .Site.Sections "Section" $bookSection }}
- {{ .Scratch.Set "BookSections" $bookSections }}
-
- {{ if eq (len $bookSections) 1 }}
- {{ $singleSection := index $bookSections 0 }}
- {{ .Scratch.Set "BookSections" $singleSection.Sections }}
- {{ end }}
-
-{{ end }}
-
-<nav role="navigation">
- {{ partial "book/nav-brand" . }}
- {{ partial "book/nav-before" . }}
-
- <ul>
- {{ range .Scratch.Get "BookSections" }}
- {{ template "book-section" (dict "Section" . "CurrentPage" $.Permalink) }}
- {{ end }}
- </ul>
-
- {{ partial "book/nav-after" . }}
-</nav>
-
-<!-- Single section of menu (recursive) -->
-{{ define "book-section" }}
- <li {{ if .Section.Params.booktopsection }}class="book-nav-section"{{ end }}>
- {{ template "book-heading" .Section }}
- <ul>
- {{ range .Section.Sections }}
- {{ template "book-section" (dict "Section" . "CurrentPage" $.CurrentPage) }}
- {{ end }}
- {{ range .Section.Pages }}
- <li>
- <a href="{{ .RelPermalink }}" class="{{ if eq $.CurrentPage .Permalink }}active{{ end }}">
- {{ default .Title (.File | humanize | title) }}
- </a>
- </li>
- {{ end }}
- </ul>
- </li>
-{{ end }}
-
-<!-- Menu Heading -->
-{{ define "book-heading" }}
-
-{{ $sections := split (trim .Dir "/") "/" }}
-{{ $title := index ($sections | last 1) 0 | humanize | title }}
-{{ $title := default .Title $title }}
-
-{{ if .Content }}
-<a href="{{ .RelPermalink }}">
- {{- $title -}}
-</a>
-{{ else }}
-<a>
- {{- $title -}}
-</a>
-{{ end }}
-
-{{ end }}
diff --git a/layouts/partials/book/nav.html b/layouts/partials/book/nav.html
deleted file mode 100644
index 929b1b7..0000000
--- a/layouts/partials/book/nav.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{{ if .Site.Params.BookMenuBundle }}
- {{ partial "book/nav-bundle" . }}
-{{ else }}
- {{ partial "book/nav-tree" . }}
-{{ end }} \ No newline at end of file
diff --git a/layouts/partials/book/toc.html b/layouts/partials/book/toc.html
deleted file mode 100644
index aca3785..0000000
--- a/layouts/partials/book/toc.html
+++ /dev/null
@@ -1 +0,0 @@
-{{ .Page.TableOfContents }} \ No newline at end of file