website/js/main.js

11 lines
476 B
JavaScript
Raw Normal View History

2019-08-13 15:16:48 +02:00
$(document).ready(function() {
var sjs = SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '/search.json',
searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>',
noResultsText: '<a class="dropdown-item" href="#">Nessun risultato</a>',
exclude: ["https://blog.unitoo.it", "https://blog.unitoo.pw"]
});
});