Fix simple search path issues

This commit is contained in:
Michael Rose 2013-09-11 16:23:29 -04:00
parent 7b26bbff4d
commit f30520be41
6 changed files with 4 additions and 3 deletions

View file

@ -31,7 +31,7 @@ $(function() {
// Simple Jekyll Search options
$(document).ready(function() {
$('.search-field').simpleJekyllSearch({
jsonFile : 'search.json',
jsonFile : '{siteurl}/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>'

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -3,9 +3,10 @@
[
{% for post in site.posts %}
{
"siteurl" : "{{ site.url }}",
"title" : "{{ post.title | escape }}",
"category" : "{{ post.category }}",
"url" : "{{ post.url }}",
"url" : "{{ site.url }}{{ post.url }}",
"date" : "{{ post.date }}",
"shortdate" : "{{ post.date | date: '%B %d, %Y' }}"
} {% if forloop.last %}{% else %},{% endif %}