A bit of a background on the project. I have a features structure section, that has 2 levels: Parent features & Child features.
{% set features = craft.entries.section('features').all() %}
My goal is to get an active class on the parent if the parent page is active or if it's got a child that is active and also get an active class on the child if its active.
The {% children %}
tag doesn't allow for custom HTML.
I am looking to get something similar to this left navigation. But instead of anchors, each feature will be its own page. https://craftcms.com/features/all#section-types
Thanks