<!DOCTYPE html>
<html>

  {% include head.html %}

  <body>

    {% include header.html %}
    {% include yandex_metrika.html %}

    <div class="page-content">
      <div class="wrapper">
        <div class="col-main">
          {{ content }}
        </div>
        <div class="col-second">
          {% include sidebar.html %}
        </div>
      </div>
    </div>

    {% include footer.html %}

  </body>

</html>

<!DOCTYPE html>
<html>

  {% include head.html %}

  <body>

    {% include header.html %}
    {% if jekyll.environment == 'production'%}
      {% include yandex_metrika.html %}
    {% endif %}

    <div class="page-content">
      <div class="wrapper">
        <div class="col-main">
          {{ content }}
        </div>
        <div class="col-second">
          {% include sidebar.html %}
        </div>
      </div>
    </div>

    {% include footer.html %}

  </body>

</html>

Use jekyll environment for yandex metrika
Use jekyll environment for yandex metrika
