Twig tweak- If node is not the front page display div - Node Twig Template

I could not find a simple way to do this or at least I couldn't find any instruction in twig docs. 
if is_front == false Did not work.

 

The below twig did, mind your home page may no be Node 1 like mine is. So change "1" if you need to.

 

{% if node.id == 1 %}

{% else%}
<div class= "pageheaders"><img src="/images/headerbeach.jpg"/></div>
{% endif %}

 

OR

{% if node.id != 1 %}
<div class= "pageheaders"><img src="/images/headerbeach.jpg"/></div>

{% else%}

{% endif %}

Blog Type: