update to search config

search was breaking if topic titles had an apostrophe. i escaped this
apostrophe here.
This commit is contained in:
Tom Johnson
2015-10-15 14:52:01 -07:00
parent 7e351a08ef
commit 2687f779d2
2 changed files with 1 additions and 2 deletions

View File

@ -74,7 +74,7 @@ SimpleJekyllSearch.init({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
dataSource: 'search.json',
searchResultTemplate: '<li><a href="{url}" title="{{page.title}}">{title}</a></li>',
searchResultTemplate: '<li><a href="{url}" title="{{page.title | replace: "'", "\"}}">{title}</a></li>',
noResultsText: '{{site.data.strings.search_no_results_text}}',
limit: 10,
fuzzy: true,

View File

@ -6,7 +6,6 @@ weight: 1.0
last_updated: August 12, 2015
---
{% include custom/doc/series_acme.html %}
This is the first post in the series.