update to search config
search was breaking if topic titles had an apostrophe. i escaped this apostrophe here.
This commit is contained in:
@ -74,7 +74,7 @@ SimpleJekyllSearch.init({
|
|||||||
searchInput: document.getElementById('search-input'),
|
searchInput: document.getElementById('search-input'),
|
||||||
resultsContainer: document.getElementById('results-container'),
|
resultsContainer: document.getElementById('results-container'),
|
||||||
dataSource: 'search.json',
|
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}}',
|
noResultsText: '{{site.data.strings.search_no_results_text}}',
|
||||||
limit: 10,
|
limit: 10,
|
||||||
fuzzy: true,
|
fuzzy: true,
|
||||||
|
@ -6,7 +6,6 @@ weight: 1.0
|
|||||||
last_updated: August 12, 2015
|
last_updated: August 12, 2015
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
{% include custom/doc/series_acme.html %}
|
{% include custom/doc/series_acme.html %}
|
||||||
|
|
||||||
This is the first post in the series.
|
This is the first post in the series.
|
||||||
|
Reference in New Issue
Block a user