From ad058d4e01c59e351252568b2744185d4345f671 Mon Sep 17 00:00:00 2001
From: weru <onewesh@gmail.com>
Date: Fri, 27 Nov 2020 13:37:14 +0000
Subject: [PATCH] update template #23
---
layouts/partials/sidebar.html | 5 ++++-
layouts/partials/sprites.html | 3 +++
layouts/partials/nav.html | 4 +++-
3 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 689e3fa..92d0fe2 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -11,7 +11,9 @@
{{ end }}
<img srcset = '{{ $litPath }}' alt = '{{ $s.Title }} Logo'>
</picture>
- <label class="nav_toggle">Menu</label>
+ <label class="nav_toggle toggle" title="Site Menu" role="button">
+ {{ partial "sprite" (dict "icon" "harmburger") }}
+ </label>
</a>
<ul class="nav_body">
<li class="nav-item">
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 6af5f1a..642530e 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,10 +1,13 @@
<aside class="aside">
+ <div>
+ <label class="aside_toggle toggle" title="Docs Menu" role="button">Docs Menu {{ partial "sprite" (dict "icon" "harmburger") }}</label>
+ </div>
{{- template "tree" (dict "page" . "section" .FirstSection) }}
{{- define "tree" }}
{{- $section := .section }}
{{- $page := .page }}
{{- $permalink := $page.RelPermalink }}
- <section class="section">
+ <section class="section aside_inner">
<h2 class="section_title{{ if eq $section.RelPermalink $permalink }} active{{ end }}"><a href="{{ $section.Permalink }}" class="group">{{ $section.Title }}</a></h2>
{{- $pages := $section.Pages }}
{{- with $pages }}
diff --git a/layouts/partials/sprites.html b/layouts/partials/sprites.html
index 419e2ba..b81e440 100644
--- a/layouts/partials/sprites.html
+++ b/layouts/partials/sprites.html
@@ -5,4 +5,7 @@
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.999 511.999" id="search">
<path d="M508.874 478.708L360.142 329.976c28.21-34.827 45.191-79.103 45.191-127.309C405.333 90.917 314.416 0 202.666 0S0 90.917 0 202.667s90.917 202.667 202.667 202.667c48.206 0 92.482-16.982 127.309-45.191l148.732 148.732c4.167 4.165 10.919 4.165 15.086 0l15.081-15.082c4.165-4.166 4.165-10.92-.001-15.085zM202.667 362.667c-88.229 0-160-71.771-160-160s71.771-160 160-160 160 71.771 160 160-71.771 160-160 160z"></path>
</symbol>
+ <symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 241 179" id="harmburger">
+ <path d="M1 10C1 4.477 5.477 0 11 0h220c5.523 0 10 4.477 10 10s-4.477 10-10 10H11C5.477 20 1 15.523 1 10zm0 80c0-5.523 4.477-10 10-10h220c5.523 0 10 4.477 10 10s-4.477 10-10 10H11c-5.523 0-10-4.477-10-10zm9 69c-5.523 0-10 4.477-10 10s4.477 10 10 10h220c5.523 0 10-4.477 10-10s-4.477-10-10-10H10z"></path>
+ </symbol>
</svg>
\ No newline at end of file
--
Gitblit v1.10.0