1
0
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:
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'), $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();

View File

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