> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# {{#isNot}} helper

- URL: https://getpublii.com/dev/is-not-helper/
- Published: 2025-11-04T04:56:47.916Z
- Updated: 2025-11-04T04:58:01.301Z
- Description: The {{#isNot}} helper is a block helper designed to check if a specific context is not loaded. Think of it as the opposite of {{#is}}…
- Author: Tomasz Dziuda
- Tags: Helpers

The {{#isNot}} helper is a block helper designed to check if a specific context is **not** loaded. Think of it as the opposite of {{#is}} — it returns true when the page type doesn't match what you're checking for.

The argument can be a comma-separated list of context names:

-   **index** - homepage,
-   **homepage** - new context for the homepage, applied when:
    -   the **posts** are displayed on the homepage (the existing **index** context).
    -   the **page** is configured as a homepage (this is the key difference from **index**; normally, if a page is set as the homepage, it uses the page context, but with this new **homepage** context, the homepage can now have a dedicated context).
    -   The posts appear despite a post prefix (e.g., `/blog/`) being set, but no **page as the homepage** is explicitly assigned.
-   **blogindex** - custom post listing page when a post prefix (e.g., `/blog/`) is set in Publii; used to display posts within a specific directory,
-   **tag** - tag listing page,
-   **tags** - tags listing,
-   **post** - single post page,
-   **page** - single page,
-   **author** - author listing page,
-   **404** - 404 error page,
-   **search** - search results page,
-   **pagination** - pagination page (tag or homepage) beginning from the second page,
-   **index-pagination** - pagination homepage page beginning from second page,
-   **tag-pagination** - pagination tag page beginning from the second page.
-   **author-pagination** - pagination author page beginning from the second page.

Syntax:

```handlebars
{{#isNot ARGUMENT}}
This is NOT a page of the type specified in the argument
{{else}}
This IS a page of the type specified in the argument
{{/isNot}}
```

Examples:

```handlebars
{{#isNot "index"}}
```

Above code checks if the current page is **not** a homepage

```handlebars
{{#isNot "index,tag"}}
```

In the above code condition is true when current page is neither a homepage nor a tag page.

```handlebars
{{#isNot "post"}}
  <p>This content appears everywhere except single post pages.</p>
{{/isNot}}
```

This is useful when you want to show something site-wide but hide it on individual posts.

```handlebars
{{#isNot "404,search"}}
  {{> sidebar}}
{{/isNot}}
```
