mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 18:00:06 +01:00
prevent search.json from loading by default
This commit is contained in:
parent
29c05377c9
commit
0dba92b940
@ -23,16 +23,16 @@ var siteNavigation = {
|
|||||||
$searchresults = $('.search-results'),
|
$searchresults = $('.search-results'),
|
||||||
$searchpop = $('.popover');
|
$searchpop = $('.popover');
|
||||||
|
|
||||||
// init jekyll search
|
|
||||||
$searchfield.simpleJekyllSearch({
|
|
||||||
searchResults : '.search-results',
|
|
||||||
searchResultsTitle : '',
|
|
||||||
template : '<a class="nav-link" href="{url}" title="{title}">{title}</a>',
|
|
||||||
});
|
|
||||||
|
|
||||||
$searchlink.click(function(e){
|
$searchlink.click(function(e){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
|
// init jekyll search
|
||||||
|
$searchfield.simpleJekyllSearch({
|
||||||
|
searchResults : '.search-results',
|
||||||
|
searchResultsTitle : '',
|
||||||
|
template : '<a class="nav-link" href="{url}" title="{title}">{title}</a>',
|
||||||
|
});
|
||||||
|
|
||||||
// show search
|
// show search
|
||||||
$searcharea.addClass('ready');
|
$searcharea.addClass('ready');
|
||||||
$searchfield.focus();
|
$searchfield.focus();
|
||||||
|
@ -153,6 +153,8 @@
|
|||||||
@media @breakpoint2 {
|
@media @breakpoint2 {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
float: left;
|
float: left;
|
||||||
|
font-size: .85em;
|
||||||
|
line-height: 1.3em
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user