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

search.html « layouts - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d33e0b8b59560cfe94cb7566d535d27f09e77e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#">
  <head>
    <%= render '/head.*' %>
    <link rel="canonical" href="<%= @config[:base_url] %>/search/">
    <% if @config[:algolia] == "true" %>
    <link rel="stylesheet" href="/frontend/search/instantsearch.css">
    <script src="<%= @items['/frontend/search/instantsearch.*'].path %>"></script>
    <% else %>
    <script src="/assets/javascripts/lunr.min.js"></script>
    <script src="<%= @items['/frontend/search/lunrsearch.*'].path %>"></script>
    <% end %>
  </head>
  <body>
    <%= render '/gtm.*' %>
    <%= render '/header.*' %>
    <section class="gl-docs container pt-5">
      <div class="row">
        <div class="col-12 mt-5">
          <div class="main class pl-lg-4">
            <% if @config[:algolia] == "true" %>
            <div class="js-instantsearch"></div>
            <% else %>
            <div class="js-lunrsearch"></div>
            <% end %>
            <%= render '/footer.*' %>
          </div>
        </div>
      </div>
    </section>
    <script src="<%= @items['/frontend/shared/global_imports.*'].path %>"></script>
    <script src="<%= @items['/frontend/header/index.*'].path %>"></script>

    <% if production? %>
    <%# Add analytics only in production %>
      <%= render '/analytics.*' %>
    <% end %>
    <%= render '/schema-microdata.*' %>
  </body>
</html>