32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
<div class="search search--dark">
|
|
<div class="main">
|
|
<div class="search__header">{{ _locale_search }}</div>
|
|
<div class="search-bar">
|
|
<div class="search-box js-search-box">
|
|
<div class="search-box__icon-search"><i class="fas fa-search"></i></div>
|
|
<input id="search-input" type="text" />
|
|
<div class="search-box__icon-clear js-icon-clear">
|
|
<a><i class="fas fa-times"></i></a>
|
|
</div>
|
|
</div>
|
|
<button class="button button--theme-dark button--pill search__cancel js-search-toggle">
|
|
{{ _locale_cancel }}</button>
|
|
</div>
|
|
<div id="results-container" class="search-result js-search-result"></div>
|
|
</div>
|
|
</div>
|
|
<!-- Script pointing to search-script.js -->
|
|
<script>{%- include search-providers/custom/search-script.js -%}</script>
|
|
|
|
<!-- Configuration -->
|
|
<script>
|
|
SimpleJekyllSearch({
|
|
searchInput: document.getElementById('search-input'),
|
|
resultsContainer: document.getElementById('results-container'),
|
|
noResultsText: '<p>Aucun résultat!</p>',
|
|
json: '/search.json',
|
|
searchResultTemplate: '<li><a href="{url}">{date} {title}</a> (Création {create})</li>'
|
|
})
|
|
</script>
|
|
|