hexo/themes/blank/layout/partial/_search/local-searchjs.ejs

9 lines
333 B
Plaintext

<script src="<%- url_for('/js/local-search.js') %>"></script>
<script type="text/javascript">
var search_path = "<%= config.search.path %>";
if (search_path.length == 0) {
search_path = "search.xml";
}
var path = "<%= config.root %>" + search_path;
searchFunc(path, 'local-search-input', 'local-search-result');
</script>