mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 18:00:06 +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() {
|
$(ASAP = function() {
|
||||||
|
|
||||||
siteNavigation.init();
|
siteNavigation.init();
|
||||||
@ -26,22 +25,15 @@ var siteNavigation = {
|
|||||||
$searchlink.click(function(e) {
|
$searchlink.click(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
SimpleJekyllSearch.init({
|
// init jekyll search
|
||||||
|
SimpleJekyllSearch({
|
||||||
searchInput: $searchfield,
|
searchInput: $searchfield,
|
||||||
resultsContainer: $searchresults,
|
resultsContainer: $searchresults,
|
||||||
dataSource: '/search.json',
|
json: '/search.json',
|
||||||
searchResultTemplate: '<a class="search-link" href="{url}" title="{title}">{title}</a>',
|
searchResultTemplate: '<a class="search-link" href="{url}" title="{title}">{title}</a>',
|
||||||
fuzzy: true
|
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
|
// show search
|
||||||
$searcharea.removeClass('ready bounceOutUp').addClass('ready slideDown');
|
$searcharea.removeClass('ready bounceOutUp').addClass('ready slideDown');
|
||||||
$searchfield.focus();
|
$searchfield.focus();
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
layout: null
|
||||||
---
|
---
|
||||||
[
|
[
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
|
Loading…
Reference in New Issue
Block a user