diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2019-06-16 21:18:07 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2019-06-16 21:18:07 +0300 |
commit | 33e26c6385bde9f1d7c55675cc4fab61c7f51998 (patch) | |
tree | 8d9e72fa4d8642a7ccd926f8b092b71dd13e7773 | |
parent | 48a0e7c32dd657c0a3a3b74065df768b3cac1784 (diff) |
modified sidebar
-rw-r--r-- | layouts/partials/sidebar.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 859ae12..f5f30a9 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,17 +1,19 @@ <div class="toTop" style="width: 25px;"> - {{ partial "previousChapter" . }} - {{ partial "nextChapter" . }} - <p class="navMenu menuItem mb-1 mt-1 text-left"> + {{ if eq .Kind "page" }} + {{ partial "chapterMenu" . }} + {{ partial "prevnext" . }} + {{ end }} + <p class="mb-1 mt-1 text-left"> <i - class="fas fa-chevron-circle-up" + class="navMenu menuItem fas fa-chevron-circle-up" title="Scroll to top" onclick="scrollToTop()" ></i> </p> - <p class="navMenu menuItem mb-1 mt-1 text-left"> + <p class="mb-1 mt-1 text-left"> <i title="Copy URL to share" - class="fas fa-share-alt" + class="navMenu menuItem fas fa-share-alt" onclick="copyUrl({{ .Permalink }})" ></i> </p> |