(function() {
  'use strict';

  const client = algoliasearch('5IGTHBX5JS', '7f7511d659569fcede7653d568b3206c');
  const index = client.initIndex('blog_eleven');

  const searchInput = document.getElementById('js-algolia__input');

  function onQueryChange() {
    const contentId = document.getElementById('js-content');
    const contentSearchId = document.getElementById('js-content-search');
    contentId.style.display = 'none';
    contentSearchId.style.display = 'block';

    if (!searchInput.value) {
      contentId.style.display = 'block';
      contentSearchId.style.display = 'none';
      return;
    }

    index.search(searchInput.value, (err, content) => {
      let htmlArticle = Object.keys(content.hits).reduce((article, key) => {
        const hit = content.hits[key];

        if (hit.type !== 'document' || hit.layout === 'author') {
          return article;
        }

        return article + `
          <div class="posts-teaser slice">
            <div class="container">
              <h2 class="posts-title">
                <a class="no-link-style" href="${hit.url}">${hit.title}</a>
              </h2>
              <time class="posts-date meta">
                <span class="meta-content">${moment(new Date(hit.date)).format('MMMM DD, YYYY')}</span>
              </time>
              <p class="excerpt">${hit.excerpt}</p>
              <a class="button" href="${hit.url}">Lire l'article</a>
            </div>
          </div>
        `;
      }, '');

      htmlArticle += `
        <div class="container search-logo">
          search by
          <span class="search-logo-bg"></span>
        </div>
      `;

      contentSearchId.innerHTML = htmlArticle;
    });
  }

  searchInput.addEventListener('keyup', onQueryChange);
})();

@@ -1569,16 +1569,75 @@
 arch by%0A
+          %3Ca href=%22https://algolia.com%22 target=%22_blank%22%3E%0A  
         
@@ -1667,32 +1667,47 @@
 ogo-bg%22%3E%3C/span%3E%0A
+          %3C/a%3E%0A
         %3C/div%3E%0A 

add link on logo