I have a sidebar where I show all posts using foreach.
Is it possible to highlight the post that is currently open?
I created a custom helper but I cannot seem to get the parent url.
Using …/url returns undefined.
the current setup looks something like this:
{{#post}}
{{title}}
{{content}}
{{#get "posts" filter="tags:blog" order="published_at desc" as |pt|}}
{{#foreach pt }}
{{#isSubstring url (../url)}}
<a class="bold" href="{{url}}">{{title}}</a>
{{else}}
<a class="regular" href="{{url}}">{{title}}</a>
{{/foreach}}
{{/get}}