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:
parent
fb8ad31e36
commit
9c2c3c49f9
@ -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();
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
layout: null
|
||||
---
|
||||
[
|
||||
{% for post in site.posts %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user