Sha256: fb4074a9ef9ffa4943861310c150797e9ab155485397ba86885d2dac5ed1584e

Contents?: true

Size: 1.99 KB

Versions: 4

Compression:

Stored size: 1.99 KB

Contents

<section id="search-box" class="d-flex flex-column justify-content-center offset-xs-1 col-xs-10 offset-sm-3 col-sm-6">
    <header>
        <div id="search-input"></div>
    </header>
    <main>
        <div id="right-column">
            <div id="sort-by-wrapper"><span id="sort-by"></span></div>
            <div id="stats"></div>
            <div id="hits"></div>
            <div id="pagination"></div>
        </div>
    </main>

    <!-- TEMPLATES -->
    <script type="text/html" id="no-results-template">
        <div id="no-results-message">
        <p>We didn't find any results for the search <em>"{{query}}"</em>.</p>
        <a href="." class='clear-all'>Clear search</a>
        </div>
    </script>


    <!-- SCRIPTS -->
    <script src="https://cdn.jsdelivr.net/npm/algoliasearch@4.0.3/dist/algoliasearch-lite.umd.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4.7.0/dist/instantsearch.production.min.js"></script>
    <script src="/assets/vendor/search.js"></script>
    <div id="algolia-props" class="d-none" data-algolia-application-id="{{ site.algolia.application_id }}" data-algolia-api-key={{ site.algolia.api_key }} data-algolia-index-name="{{ site.algolia.index_name }}" data-algolia-hits-per-page="{{ site.algolia.hits_per_page }}"></div>
    <script>
    document.addEventListener("DOMContentLoaded", function (e) {
        try {
            app({
                appId: document.getElementById('algolia-props').dataset.algoliaApplicationId,
                apiKey: document.getElementById('algolia-props').dataset.algoliaApiKey,
                indexName: document.getElementById('algolia-props').dataset.algoliaIndexName,
                searchParameters: {
                    hitsPerPage: document.getElementById('algolia-props').dataset.algoliaHitsPerPage,
                },
            });
        } catch (err) {
            document.getElementById('search-box').remove();
        };
        document.getElementById('algolia-props').remove();
    });
    </script>
</section>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lbenicio-minimal-v1-1.6.4 _includes/search-bar.html
lbenicio-minimal-v1-1.6.3 _includes/search-bar.html
lbenicio-minimal-v1-1.6.2 _includes/search-bar.html
lbenicio-minimal-v1-1.6.1 _includes/search-bar.html