1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-28 16:48:00 +02:00

prevent search.json from loading by default

This commit is contained in:
Matthias Kretschmann 2013-12-28 16:22:36 +01:00
parent 29c05377c9
commit 0dba92b940
2 changed files with 9 additions and 7 deletions

View File

@ -23,16 +23,16 @@ var siteNavigation = {
$searchresults = $('.search-results'),
$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){
e.preventDefault();
// init jekyll search
$searchfield.simpleJekyllSearch({
searchResults : '.search-results',
searchResultsTitle : '',
template : '<a class="nav-link" href="{url}" title="{title}">{title}</a>',
});
// show search
$searcharea.addClass('ready');
$searchfield.focus();

View File

@ -153,6 +153,8 @@
@media @breakpoint2 {
width: 50%;
float: left;
font-size: .85em;
line-height: 1.3em
}
}
}