Log in Sign up

Error checking if page is active in menu ?

When I put the following in my template, I get the error Unclosed section "active}

<div class="menu">
{{#menu}} 
  {{#active}}
    <a href="{{{url}}}" class="light active">{{label}}</a>
  {{/active}} 
  {{^active}}
    <p>hello</p>
  {{/active}}
  <a href="{{{url}}}" class="light">{{label}}</a>
{{/menu}}
</div>

2 years ago, 2 replies   developers   Edit question

That's very strange – your template syntax looks good – would you be willing to share a link to your template's preview either here or over email? It's possible something else is missing or perhaps there is a bug with Blot

Answered 2 years ago · Edit answer

All sorted now. Must have been some syncing issues. I was developing a copy of a template locally, after coming back to the code a few hours later it worked:) Thanks

Answered 2 years ago · Edit answer