I’ve got a page, /external, that I’ve created with collections in the routes.yaml file:
collections:
/:
permalink: /{slug}/
template: index
filter: tags:-[hash-external]
data:
external:
resource: posts
type: browse
filter: tags:[hash-external]
limit: 3
/external/:
permalink: /{slug}/
template: external
filter: tag:hash-external
controller: channel
data: page.external
What I need to do with that page is not only target it with {{#is "page"}}{{/is}} (which works), but target it specifically via its slug so that other pages aren’t affected. However, things don’t work when I try and single things out via the following:
{{#is "page"}}
{{#has slug="external"}}
<img>
{{/has}}
{{/is}}
Am I just doing it wrong, and/or might there be some other way to accomplish this that I’m not thinking of?