mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-07 12:06:26 +00:00
Fix search.json url for realZ this time
This commit is contained in:
parent
38db39977e
commit
ae06bed7ae
4 changed files with 38 additions and 36 deletions
|
@ -1,6 +1,42 @@
|
|||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="{{ site.url }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
||||
<script src="{{ site.url }}/assets/js/scripts.min.js"></script>
|
||||
{% if site.search %}
|
||||
<!-- Jekyll Simple Search option -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.search-field').simpleJekyllSearch({
|
||||
jsonFile : '{{ site.url }}/search.json',
|
||||
searchResults : '.search-results',
|
||||
template : '<li><article><a href="{url}">{title} <span class="entry-date"><time datetime="{date}">{shortdate}</time></span></a></article></li>',
|
||||
noResults: '<p>Nothing found.</p>'
|
||||
});
|
||||
});
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
||||
var bs = {
|
||||
close: $(".icon-remove-sign"),
|
||||
searchform: $(".search-form"),
|
||||
canvas: $("body"),
|
||||
dothis: $('.dosearch')
|
||||
};
|
||||
|
||||
bs.dothis.on('click', function() {
|
||||
$('.search-wrapper').css({ display: "block" });
|
||||
bs.searchform.toggleClass('active');
|
||||
bs.searchform.find('input').focus();
|
||||
bs.canvas.toggleClass('search-overlay');
|
||||
});
|
||||
|
||||
bs.close.on('click', function() {
|
||||
$('.search-wrapper').removeAttr( 'style' );
|
||||
bs.searchform.toggleClass('active');
|
||||
bs.canvas.removeClass('search-overlay');
|
||||
});
|
||||
})( jQuery, window );
|
||||
</script>
|
||||
{% endif %}
|
||||
{% if site.google_analytics %}
|
||||
<!-- Asynchronous Google Analytics snippet -->
|
||||
<script>
|
||||
|
|
|
@ -27,36 +27,3 @@ $('#site-nav').click(function(event){
|
|||
$(function() {
|
||||
$("article").fitVids();
|
||||
});
|
||||
|
||||
// Simple Jekyll Search options
|
||||
$(document).ready(function() {
|
||||
$('.search-field').simpleJekyllSearch({
|
||||
searchResults : '.search-results',
|
||||
template : '<li><article><a href="{url}">{title} <span class="entry-date"><time datetime="{date}">{shortdate}</time></span></a></article></li>',
|
||||
noResults: '<p>Nothing found.</p>'
|
||||
});
|
||||
});
|
||||
|
||||
(function( $, window, undefined ) {
|
||||
|
||||
var bs = {
|
||||
close: $(".icon-remove-sign"),
|
||||
searchform: $(".search-form"),
|
||||
canvas: $("body"),
|
||||
dothis: $('.dosearch')
|
||||
};
|
||||
|
||||
bs.dothis.on('click', function() {
|
||||
$('.search-wrapper').css({ display: "block" });
|
||||
bs.searchform.toggleClass('active');
|
||||
bs.searchform.find('input').focus();
|
||||
bs.canvas.toggleClass('search-overlay');
|
||||
});
|
||||
|
||||
bs.close.on('click', function() {
|
||||
$('.search-wrapper').removeAttr( 'style' );
|
||||
bs.searchform.toggleClass('active');
|
||||
bs.canvas.removeClass('search-overlay');
|
||||
});
|
||||
|
||||
})( jQuery, window );
|
2
assets/js/scripts.min.js
vendored
2
assets/js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,6 @@
|
|||
[
|
||||
{% for post in site.posts %}
|
||||
{
|
||||
"siteurl" : "{{ site.url }}",
|
||||
"title" : "{{ post.title | escape }}",
|
||||
"category" : "{{ post.category }}",
|
||||
"url" : "{{ site.url }}{{ post.url }}",
|
||||
|
|
Loading…
Reference in a new issue