Add the below code insert theme.liquid before the head tag
{%- if template contains 'index' -%} {%- endif -%}