Check if it's the front page in the template Im trying to show content when I'm on the front page of my Drupal 8 test website, but the content shows on every page:

{% if front_page %}
  &lt;header role="banner"&gt;
    {% if logo %}
      &lt;a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home"&gt;
        &lt;img src="{{ logo }}" alt="{{ 'Home'|t }}"/&gt;
      &lt;/a&gt;
    {% endif %}
    &lt;h1 style="color:black"&gt;TESTTESTTESTESTAET&lt;/h1&gt;
&lt;h1&gt;test&lt;/h1

    {{ page.header }}
  &lt;/header&gt;
{% endif %}


Why doesn't this work and how can I make this work?
The variable you're looking for is called is_front:

{% if is_front %}


The available variables for a template are documented at the top of the .html.twig file, however there is also a set of default variables available to all templates (which are not documented in every single template). You can find them in _template_preprocess_default_variables().