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

9 lines
333 B
Plaintext
Raw Normal View History

2024-05-09 10:56:56 +08:00
<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>