๐ Search through your jekyll pages, posts, or any collection the ES6 way
MIT License
Search through your jekyll pages, posts, or any collection the ES6 way. See a demo
src/
) or install with npmassets/
directory (or preferred directory)search.js
file and fetch.js
polyfill:<script type="text/javascript" src="./src/fetch.js"></script>
<script type="text/javascript" src="./src/search.js"></script>
<script type="text/javascript">
// New search using example options
const search = new jekyllSearch(
'https://alembic.darn.es/assets/search.json',
'#search',
'#list',
'https://alembic.darn.es'
);
// Initialise
search.init();
</script>
const search = new jekyllSearch(
'https://alembic.darn.es/assets/search.json', // Your data source, can be relative or absolute
'#search', // The selector of your search input field
'#list', // The selector of your search results wrapper
'https://alembic.darn.es' // Optional site url for absolute urls
);