Conditional with .IsHome

I am trying to print something at the end of content if the page isn’t .IsHome. The original is:

<div class='container entry-content'>
  {{ .Content }}
</div>

I want something like:

<div class='container entry-content'>
  {{ .Content }}
  {{ if ne .IsHome }}
  <p class="endofpage">§</p>
  {{ end }}
</div>

That, of course, isn’t working. Help?

Have you tried:

{{ if not .IsHome }}
2 Likes

Didn’t, but just now, and it does what I want! Thanks much mate!

If you like ne need to write {{ if ne .IsHome true }}

1 Like

Thank you!