blob: ff3ea8da6c79083841c5a523b94ff9178d3f1ac6 (
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
|
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#" class="search-results">
<head>
<%= render '/head.*' %>
<link rel="canonical" href="<%= @config[:base_url] %>/search/">
</head>
<body>
<%= render '/header.*' %>
<section class="gl-docs container">
<div class="row">
<div class="col-12">
<div class="main class pl-lg-4">
<% if @config[:search_backend] == "google" %>
<div class="js-google-search"></div>
<% else %>
<div class="js-lunrsearch"></div>
<% end %>
<%= render '/footer.*' %>
</div>
</div>
</div>
</section>
<script src="/assets/vendor/vue.min.js"></script>
<script src="/assets/vendor/jquery.slim.min.js"></script>
<% if @config[:search_backend] == "google" %>
<script src="<%= @items['/frontend/search/google_results.*'].path %>"></script>
<% else %>
<script src="/assets/vendor/lunr.min.js"></script>
<script src="<%= @items['/frontend/search/lunrsearch.*'].path %>"></script>
<% end %>
<script src="<%= @items['/frontend/header/index.*'].path %>"></script>
<%# Add analytics only in production %>
<%= render '/analytics.*' %>
</body>
</html>
|