From d11e332dc692ba9c61ac0c0796a9c8e4e2431e51 Mon Sep 17 00:00:00 2001 From: Patrick Marsceill Date: Fri, 16 Nov 2018 11:46:43 -0500 Subject: [PATCH] Create condition for no search and add config/css --- _config.yml | 3 +++ _includes/head.html | 2 ++ _layouts/default.html | 6 ++++-- _sass/layout.scss | 7 ++++--- _sass/navigation.scss | 2 +- _sass/search.scss | 2 +- assets/js/just-the-docs.js | 4 +++- 7 files changed, 18 insertions(+), 8 deletions(-) diff --git a/_config.yml b/_config.yml index 58d048a..22aef3f 100644 --- a/_config.yml +++ b/_config.yml @@ -21,6 +21,9 @@ baseurl: "/just-the-docs/" # the subpath of your site, e.g. /blog permalink: pretty exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"] +# Enable or disable the site search +search_enabled: true + # Aux links for the upper right navigation aux_links: "Just the Docs on GitHub": diff --git a/_includes/head.html b/_includes/head.html index 8aae2cf..cbd41f9 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,7 +4,9 @@ {{ page.title }} - {{ site.title }} + {% if site.search_enabled != nil %} + {% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index fe76346..cc76786 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,7 +16,8 @@