Sha256: c0a9b670d05f05d23331d7d252bf111fab90b1c7847c5c1179bc8c8a41ce11dd

Contents?: true

Size: 704 Bytes

Versions: 42

Compression:

Stored size: 704 Bytes

Contents

---
---

{% if site.algolia %}
  // Instanciating InstantSearch.js with Algolia credentials
  var search = instantsearch({
    appId: '{{ site.algolia.application_id }}',
    indexName: '{{ site.algolia.index_name }}',
    apiKey: '{{ site.algolia.search_only_api_key }}'
  });

  // Adding searchbar and results widgets
  search.addWidget(
    instantsearch.widgets.searchBox({
      container: '#search-searchbar',
      placeholder: 'Search into posts...',
      poweredBy: true // This is required if you're on the free Community plan
    })
  );
  search.addWidget(
    instantsearch.widgets.hits({
      container: '#search-hits'
    })
  );

  // Starting the search
  search.start();
{% endif %}

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
jekyll-geolexica-1.0.2 assets/algolia-search.js
jekyll-geolexica-1.0.0 assets/algolia-search.js