From 009cb9c980b0ed9555177888efa3748a93a391b9 Mon Sep 17 00:00:00 2001 From: Charles Prakash Dasari Date: Tue, 25 Apr 2017 12:19:43 -0700 Subject: [PATCH] Adding a feature to support hiding sidebar on pages --- _includes/sidebar.html | 5 ++--- _includes/topnav.html | 2 +- _layouts/default.html | 20 +++++++++++++------- index.md | 2 ++ 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 1a9c236..e10834e 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -40,7 +40,8 @@ {% endif %} {% endfor %} - {% endif %} + + {% endif %} {% endfor %} {% endfor %} - - diff --git a/_includes/topnav.html b/_includes/topnav.html index aa5f072..39a172a 100644 --- a/_includes/topnav.html +++ b/_includes/topnav.html @@ -62,7 +62,7 @@ searchInput: document.getElementById('search-input'), resultsContainer: document.getElementById('results-container'), dataSource: '{{ "search.json" }}', - searchResultTemplate: '
  • {title}
  • ', + searchResultTemplate: '
  • {title}
  • ', noResultsText: '{{site.data.strings.search_no_results_text}}', limit: 10, fuzzy: true, diff --git a/_layouts/default.html b/_layouts/default.html index 80ffc2b..eeeb4d5 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,4 +1,5 @@ + {% include head.html %}