I want to use assigned categories of a post in the html class tag:
<article class="post <catOneName> <catTwoName>">
If I use
<article class="post {{ .Params.categories }}">
I get
<article class="post [catOneName]">
Obviously, I don’t want the brackets surrounding it. I thought the trim function would help me with this but when I use
<article class="post {{ trim .Params.categories "[]" }}">
I get
<article class="post
The rest of the html gets truncated. The .html just stops at “post”.
What do I not understand and where in the documentation should I have looked to find the necessary information?
Respectfully,
…Smittie