Log in Sign up

How to hide text if it's the homepage

I'd like to hide a link on my homepage. I thought using the below conditional on the page variable would work but it didn't work and the text is hidden everywhere. Any ideas?

{{^page}}The text I want to hide.{{/page}}


8 months ago, 1 replies   developers   pages   Edit question

Is that code inside the {{#entry}} ... block? Otherwise it needs to be:

{{^entry.page}}The text I want to hide.{{/entry.page}}
Answered 8 months ago ยท Edit answer