diff --git a/_config.yml b/_config.yml index 58d048a0c96dc..22aef3f2a2b39 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 8aae2cf99de1a..cbd41f9d3cd65 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 fe76346d43c23..cc7678631dbaf 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,7 +16,8 @@