{% if page.layout != 'index' -%}

<footer>
  <p class="signoff"><a href="{{ site.baseurl }}/">← Return home</a></p>
</footer>

{% endif -%}