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

13 lines
350 B
Plaintext
Raw Permalink 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 %>',
js: '<%- conf.js %>',
hitsPerPage: 100,
};
utils.js('/js/search/algolia-search.js', { defer: true });
});
</script>