by-version" aria-hidden="true"></a></h2>
<p>By default Netlify uses Ruby v2.1.2. This version is not compatible with the
<code>jekyll-algolia</code>.</p>
<p>To fix this, you’ll have to add a file named <code>.ruby-version</code> at the root of your
repository. The file content should be <code>2.4</code>. It will be picked up by Netlify
and used as the local Ruby version.</p>
<pre class="code-sample cm-s-mdn-like codeMirror undefined" data-code-type="Code"><div class="code-wrap"><code># .ruby-version
# Thi