Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/header.html')
-rw-r--r--layouts/header.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/header.html b/layouts/header.html
index e521a008..3a8be124 100644
--- a/layouts/header.html
+++ b/layouts/header.html
@@ -12,7 +12,11 @@
<% if @item[:searchbar].nil? %>
<% location = @item.identifier.to_s.split('/')[1] %>
<% unless %w(search index.erb).any?(location) %>
- <div id="docsearch" class="my-2 my-lg-0"></div>
+ <% if @config[:algolia] == "true" %>
+ <div id="docsearch" class="gl-my-3 my-lg-0"></div>
+ <% else %>
+ <div class="js-lunr-form"></div>
+ <% end %>
<% end %>
<% end %>
</li>