1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +01: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,6 +23,9 @@ var siteNavigation = {
$searchresults = $('.search-results'),
$searchpop = $('.popover');
$searchlink.click(function(e){
e.preventDefault();
// init jekyll search
$searchfield.simpleJekyllSearch({
searchResults : '.search-results',
@ -30,9 +33,6 @@ var siteNavigation = {
template : '<a class="nav-link" href="{url}" title="{title}">{title}</a>',
});
$searchlink.click(function(e){
e.preventDefault();
// 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
}
}
}