hexo-theme-stellar/layout/_plugins/search/algolia_search.ejs

13 lines
444 B
Plaintext
Raw Normal View History

2024-04-05 15:41:39 +08:00
<script>
window.addEventListener('DOMContentLoaded', (event) => {
window.searchConfig = {
appId: '<%- conf.appId %>',
apiKey: '<%- conf.apiKey %>',
indexName: '<%- conf.indexName %>',
hitsPerPage: 100,
};
utils.js('https://gcore.jsdelivr.net/algoliasearch/3/algoliasearch.min.js', { defer: true });
utils.js('/js/search/algolia-search.js', { defer: true });
});
</script>