I need to add a class to the body tag of each page (wanna give each page a different border color). How would approach that? My header snippet contains the body tag.
What I basically need is something like <?php e($item->isOpen(), ' class="active-page"') ?>just for pages, right? Can someone point me in the right direction?
There are better more efficient ways to do this, but this puts in the parent, the slug, and the year, month and hour for other tricks…, it needs a rework, but this should help.