When does {{#is "index"}} return true other than the home page?

I changed routes.yaml to match the example for a custom page in the dynamic routing docs.

The home page (now at /blog/) of the theme I’m using tests whether the page is an index ({{#is "index"}}). Currently it returns false. I’ve worked around it but for future reference I would like to understand when that test is true. In this scenario it seems like it should be true but I am probably misinterpreting what an “index” page is.

Here is my routes.yaml. The page in question is index.

/: home

permalink: /blog/{slug}/
template: index

tag: /tag/{slug}/
author: /author/{slug}/


Hey @cmckulka :wave:

Here’s a link to the docs that explains the index context:


Doh - missed that whole section. Thank you very much!!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.