aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/polaris/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'themes/polaris/layouts/partials')
-rw-r--r--themes/polaris/layouts/partials/header.html20
-rw-r--r--themes/polaris/layouts/partials/nav.html29
-rw-r--r--themes/polaris/layouts/partials/toc.html6
3 files changed, 39 insertions, 16 deletions
diff --git a/themes/polaris/layouts/partials/header.html b/themes/polaris/layouts/partials/header.html
new file mode 100644
index 0000000..5e34bda
--- /dev/null
+++ b/themes/polaris/layouts/partials/header.html
@@ -0,0 +1,20 @@
+<div class="header">
+ <div class="header-top">
+ <h2 class="header-title"><a href="/">{{ site.Title }}</a></h2>
+ <span class="header-subtext">{{ .Params.subtext | default .Site.Params.subtext }}</span>
+ </div>
+ <ul class="header-items">
+ {{ $currentPage := . }}
+ {{ range .Site.Menus.left_nav }}
+ <li class="header-item header-item-left {{ if $currentPage.IsMenuCurrent "left_nav" . }} header-item-active {{ end }}">
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ {{ range .Site.Menus.right_nav }}
+ <li class="header-item header-item-right {{ if $currentPage.IsMenuCurrent "right_nav" . }} header-item-active {{ end }}">
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ </ul>
+</div>
+<div class="header-bottom"></div>
diff --git a/themes/polaris/layouts/partials/nav.html b/themes/polaris/layouts/partials/nav.html
index dc1e463..35fb535 100644
--- a/themes/polaris/layouts/partials/nav.html
+++ b/themes/polaris/layouts/partials/nav.html
@@ -1,17 +1,14 @@
-<div class="nav-over">
- <div class="nav-title">
- <h2><a href="/">{{ site.Title }}</a></h2>
- {{ $subtext := .Params.subtext | default .Site.Params.subtext }}
- {{ with $subtext }}<span class="nav-subtext">{{ . }}</span>{{ end }}
- </div>
- <ul>
- {{ $currentPage := . }}
- {{ range site.Menus.left_nav }}
- <li><a class="nav-link link-left {{ if $currentPage.IsMenuCurrent "left_nav" . }} link-active {{ end }}" href="{{ .URL }}">{{ .Name }}</a></li>
- {{ end }}
- {{ range site.Menus.right_nav }}
- <li><a class="nav-link link-right {{ if $currentPage.IsMenuCurrent "right_nav" . }} link-active {{ end }}" href="{{ .URL }}">{{ .Name }}</a></li>
- {{ end }}
- </ul>
+<div class="nav-title">
+ <h2><a href="/">{{ site.Title }}</a></h2>
+ {{ $subtext := .Params.subtext | default .Site.Params.subtext }}
+ {{ with $subtext }}<span class="nav-subtext">{{ . }}</span>{{ end }}
</div>
-<div class="nav-under"></div>
+<ul>
+ {{ $currentPage := . }}
+ {{ range site.Menus.left_nav }}
+ <li><a class="nav-link link-left {{ if $currentPage.IsMenuCurrent "left_nav" . }} link-active {{ end }}" href="{{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+ {{ range site.Menus.right_nav }}
+ <li><a class="nav-link link-right {{ if $currentPage.IsMenuCurrent "right_nav" . }} link-active {{ end }}" href="{{ .URL }}">{{ .Name }}</a></li>
+ {{ end }}
+</ul>
diff --git a/themes/polaris/layouts/partials/toc.html b/themes/polaris/layouts/partials/toc.html
new file mode 100644
index 0000000..5f286b5
--- /dev/null
+++ b/themes/polaris/layouts/partials/toc.html
@@ -0,0 +1,6 @@
+{{ with .TableOfContents }}
+ <div class="toc">
+ <h2>Table of Contents</h2>
+ {{ . }}
+ </div>
+{{ end }}