You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If the item is the current page, don’t show a link.
2. If it’s a subpage, still show it as being current, but include a
link back to the base of that section.
I feel like I need to rethink my Sass file structure and include
orders.
Here’s how you can search for a part of a string using `in`:
mozilla/nunjucks#676 (comment)
Hi,
I'm defining a variable:
{% set activePage = "foo bar" %}
Then I have some html:
<body class="{{activePage}}">
Which gives me:
<body class="foo bar">
I'd like to check if 'activePage' contains at least 'foo' (and not necessarily 'bar'), but obviously this returns false:
{%if activePage == 'foo' %}
How could I check if the variable holds just one of those class names?
Thanks.
The text was updated successfully, but these errors were encountered: