Skip to content
Snippets Groups Projects
Commit 73362b78 authored by Uwe Jandt (DESY, HIFIS)'s avatar Uwe Jandt (DESY, HIFIS)
Browse files

var typo

parent f3d5da9a
No related branches found
No related tags found
1 merge request!308Fix bug in paths replacement for search js
......@@ -10,7 +10,7 @@
{
"title" : "{{ post.title | escape }}",
"url" : "{{ baseurl }}{{ post.url }}",
"url" : "{{ base_url }}{{ post.url }}",
"category" : "{{ post.category }}",
"tags" : "{{ post.tags | join: ', ' }}",
"date" : "{{ post.date }}",
......@@ -25,7 +25,7 @@
"title" : "{{ page.title | escape }}",
"category" : "{{ page.category }}",
"tags" : "{{ page.tags | join: ', ' }}",
"url" : "{{ baseurl }}{{ page.url }}",
"url" : "{{ base_url }}{{ page.url }}",
"date" : "{{ page.date }}",
"content" : "{{ page.content | strip_html | strip_newlines | remove_chars | escape }}"
{% endif %}
......
......@@ -24,13 +24,13 @@ Maximum number of results shown is 20.
<ul id="results-container"></ul>
</div>
<script src="{{ baseurl }}/js/simple-jekyll-search.js"></script>
<script src="{{ base_url }}/js/simple-jekyll-search.js"></script>
<script>
window.simpleJekyllSearch = new SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: '{{ baseurl }}/search.json',
json: '{{ base_url }}/search.json',
searchResultTemplate: '<li><a href="{url}?query={query}" title="{desc}">{title}</a></li>',
noResultsText: 'No results found',
limit: 20,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment