Skip to content

Commit 6d9a3c4

Browse files
committed
1 parent d73858f commit 6d9a3c4

File tree

1 file changed

+53
-4
lines changed

1 file changed

+53
-4
lines changed

Diff for: _layouts/default.html

+53-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,70 @@
88
{% feed_meta %}
99
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
1010
<link href="/css/normalize.min.css" rel="stylesheet">
11-
<link href="/css/bootstrap.min.css" rel="stylesheet">
11+
<link href="/css/bootstrap.min.css" rel="stylesheet">
1212
<link href="/css/main.css" rel="stylesheet">
1313
<link href="/css/neovim-hi.css" rel="stylesheet">
1414
<link rel="canonical" href="{{ site.url }}{% if page.canonical_url %}{{ page.canonical_url }}{% else %}{{ page.url }}{% endif %}" />
15+
16+
<!-- v3 -->
17+
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" /> -->
18+
<!-- legacy -->
19+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
1520
</head>
1621

1722
<body>
23+
testtttttttttttt
24+
<!-- <div id="docsearch"></div> -->
25+
<input id="docsearch"></input>
26+
27+
testtttttttttttt
1828
{{ content }}
1929

30+
testtttttttttttt
2031
{% include footer.html %}
2132

22-
{%- comment -%}Only used in bountysource{%- endcomment -%}
23-
<script src="/js/jquery.js"></script>
33+
{%- comment -%}Only used in bountysource{%- endcomment -%}
34+
<script src="/js/jquery.js"></script>
2435
<script src="/js/sponsors-override.js"></script>
2536
<script src="/js/sponsors.js"></script>
26-
<script src="/js/bootstrap.min.js"></script>
37+
<script src="/js/bootstrap.min.js"></script>
38+
39+
<!-- Before the closing </body> -->
40+
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
41+
<script>
42+
docsearch({
43+
// Your Algolia Application ID
44+
appId: 'R2IYF7ETH7',
45+
// Your Search API Key
46+
apiKey: '599cec31baffa4868cae4e79f180729b',
47+
// The index populated by the DocSearch scraper
48+
indexName: 'docsearch',
49+
inputSelector: '#docsearch',
50+
// Set debug to true to inspect the dropdown
51+
debug: true,
52+
});
53+
</script>
54+
55+
<!--
56+
<script src="https://cdn.jsdelivr.net/npm/@docsearch/js@3"></script>
57+
<script type="module">
58+
import docsearch from '@docsearch/js';
59+
60+
import '@docsearch/css';
61+
62+
docsearch({
63+
container: '#docsearch',
64+
appId: 'R2IYF7ETH7',
65+
apiKey: '599cec31baffa4868cae4e79f180729b',
66+
indexName: 'docsearch',
67+
});
68+
//docsearch({
69+
// container: '#docsearch',
70+
// appId: 'YOUR_APP_ID',
71+
// indexName: 'YOUR_INDEX_NAME',
72+
// apiKey: 'YOUR_SEARCH_API_KEY',
73+
//});
74+
</script>
75+
-->
2776
</body>
2877
</html>

0 commit comments

Comments
 (0)