current collection name

Hi, how would i output the current collection name of a page, blog entry whatever?

I need to add a class to my body element. First if all, i cannot find how to set a variable with antlers, it would be cleaner create a simple if statement in the top of my file and then add that variable to my body element.

But now I'm stuck checking if the current page is a single blog element

 {{ if current_uri === '/blog' || parent_uri === '/blog' }}
    <body data-template="{{ template }} {{parent_uri}}" class="bg-background-light text-black">
    {{ else }}
    <body data-template="{{ template }} {{parent_uri}}" class="bg-background text-white">
    {{ /if }}
>>>>>>> Unanswered <<<<<<<
1 Reply
1 Follower