made some fixes in the docs and to the relative links with posts and news pages
This commit is contained in:
@ -81,7 +81,8 @@ search: exclude
|
||||
{% unless forloop.last %},{% endunless %}
|
||||
{% endfor %}
|
||||
|
||||
]{% endraw %}
|
||||
]
|
||||
{% endraw %}
|
||||
```
|
||||
|
||||
The \_includes/topnav.html file then makes use of these values:
|
||||
@ -93,12 +94,12 @@ The \_includes/topnav.html file then makes use of these values:
|
||||
<input type="text" id="search-input" placeholder="{{site.data.strings.search_placeholder_text}}">
|
||||
<ul id="results-container"></ul>
|
||||
</div>
|
||||
<script src="{{ "js/jekyll-search.js" | prepend: site.baseurl }}" type="text/javascript"></script>
|
||||
<script src="{{ "js/jekyll-search.js" }}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
SimpleJekyllSearch.init({
|
||||
searchInput: document.getElementById('search-input'),
|
||||
resultsContainer: document.getElementById('results-container'),
|
||||
dataSource: '{{ "/search.json" | prepend: site.baseurl }}',
|
||||
dataSource: '{{ "search.json" }}',
|
||||
searchResultTemplate: '<li><a href="{url}" title="{{page.title | replace: "'", "\"}}">{title}</a></li>',
|
||||
noResultsText: '{{site.data.strings.search_no_results_text}}',
|
||||
limit: 10,
|
||||
|
Reference in New Issue
Block a user