mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 01:46:51 +01:00
I love when people just change their function names, fix search
This commit is contained in:
parent
3ed018d959
commit
4b53e1d60b
@ -17,20 +17,21 @@ var siteNavigation = {
|
||||
|
||||
siteSearch: function() {
|
||||
|
||||
var $searchlink = $('.search-btn'),
|
||||
var $searchlink = $('.search-btn'),
|
||||
$searcharea = $('.topbar .search-area'),
|
||||
$searchfield = $('.search-field'),
|
||||
$searchresults = $('.search-results'),
|
||||
$searchpop = $('.popover');
|
||||
$searchfield = $('.search-field'),
|
||||
$searchresults = $('.search-results'),
|
||||
$searchpop = $('.popover');
|
||||
|
||||
$searchlink.click(function(e){
|
||||
e.preventDefault();
|
||||
|
||||
// init jekyll search
|
||||
$searchfield.simpleJekyllSearch({
|
||||
searchResults : '.search-results',
|
||||
$searchfield.jekyllSearch({
|
||||
searchResults : $searchresults,
|
||||
searchResultsTitle : '',
|
||||
template : '<a class="nav-link" href="{url}" title="{title}">{title}</a>',
|
||||
fuzzy : true
|
||||
});
|
||||
|
||||
// show search
|
||||
|
@ -14,7 +14,7 @@
|
||||
"masonry": "http://masonry.desandro.com/masonry.pkgd.min.js",
|
||||
"imagesloaded": ">=3.1.0",
|
||||
"infinitescroll": "https://raw.github.com/paulirish/infinite-scroll/master/jquery.infinitescroll.js",
|
||||
"simpleJekyllSearch": "https://raw.github.com/christian-fei/Simple-Jekyll-Search/master/jekyll-search.js",
|
||||
"simpleJekyllSearch": "https://raw.github.com/christian-fei/Simple-Jekyll-Search/master/jekyll-search.jquery.js",
|
||||
"socialite": "https://raw.github.com/tmort/Socialite/master/socialite.js",
|
||||
"jquery.adaptive-background": "https://raw.github.com/briangonzalez/jquery.adaptive-backgrounds.js/master/src/jquery.adaptive-backgrounds.js"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user