未验证 提交 208dfbeb 编写于 作者: M Matthew Peveler 提交者: GitHub

Do not load lunr or jquery.highlight if search is disabled (#1409)

Signed-off-by: NMatthew Peveler <matt.peveler@gmail.com>
上级 8508248a
......@@ -26,13 +26,13 @@ under the License.
<link href="slate/css/print.css" media="print" rel="stylesheet">
<link href="slate/css/screen.css" media="screen" rel="stylesheet">
<script src="slate/js/lib/jquery.min.js"></script>
<script src="slate/js/lib/jquery.highlight.js"></script>
<script src="slate/js/lib/energize.js"></script>
<script src="slate/js/lib/imagesloaded.min.js"></script>
<script src="slate/js/lib/lunr.min.js"></script>
<script src="slate/js/app/lang.js"></script>
<script src="slate/js/app/toc.js"></script>
<% if (search) { %>
<script src="slate/js/lib/jquery.highlight.js"></script>
<script src="slate/js/lib/lunr.min.js"></script>
<script src="slate/js/app/search.js"></script>
<% } %>
<% if (typeof code_clipboard === 'boolean' && code_clipboard) { %>
......
......@@ -12,13 +12,13 @@
<link href="slate/css/print.css" media="print" rel="stylesheet">
<link href="slate/css/screen.css" media="screen" rel="stylesheet">
<script src="slate/js/lib/jquery.min.js"></script>
<script src="slate/js/lib/jquery.highlight.js"></script>
<script src="slate/js/lib/energize.js"></script>
<script src="slate/js/lib/imagesloaded.min.js"></script>
<script src="slate/js/lib/lunr.min.js"></script>
<script src="slate/js/app/lang.js"></script>
<script src="slate/js/app/toc.js"></script>
<script src="slate/js/lib/jquery.highlight.js"></script>
<script src="slate/js/lib/lunr.min.js"></script>
<script src="slate/js/app/search.js"></script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册