1
0
mirror of https://github.com/kremalicious/blog.git synced 2025-02-14 21:10:25 +01:00

fixing the search

what is it with people constantly changing their api option names
This commit is contained in:
Matthias Kretschmann 2015-05-25 22:15:46 +02:00
parent fb8ad31e36
commit 9c2c3c49f9
2 changed files with 83 additions and 90 deletions

View File

@ -1,4 +1,3 @@
$(ASAP = function() {
siteNavigation.init();
@ -26,22 +25,15 @@ var siteNavigation = {
$searchlink.click(function(e) {
e.preventDefault();
SimpleJekyllSearch.init({
// init jekyll search
SimpleJekyllSearch({
searchInput: $searchfield,
resultsContainer: $searchresults,
dataSource: '/search.json',
json: '/search.json',
searchResultTemplate: '<a class="search-link" href="{url}" title="{title}">{title}</a>',
fuzzy: true
})
// init jekyll search
// $searchfield.jekyllSearch({
// searchResults : $searchresults,
// searchResultsTitle : '',
// template : '<a class="search-link" href="{url}" title="{title}">{title}</a>',
// fuzzy : true
// });
// show search
$searcharea.removeClass('ready bounceOutUp').addClass('ready slideDown');
$searchfield.focus();

View File

@ -1,4 +1,5 @@
---
layout: null
---
[
{% for post in site.posts %}