Text only display in Home menu

Hi, I’m newbie and need some advise…
I use mars-theme and I tried to create a text (like prolog) in website and I want to this text only show in home menu not the other. I have create prolog.js in Component folder, and export as Prolog.

<Prolog when={data.isHome} />

Not working. If I click other menus, the prolog still there.
Can anyone help me…?