Hey everyone,
I'm new to Grav and just ran into something. On the blog-index page I need to give every blogpost a different look. At the moment I have 5 different looks. What I hoped to do is to add a variable class to the frontmatter of the blogposts' pages and that I could use this like this:
<div class="blog-item {{ page.class }}">
<a href="{{ page.url }}">
{{ page.media.images|first.cropZoom(640,430).html }}
<h4>
{{ page.title }}
</h4>
{{ page.vorm }}
</a>
</div>
Also, I hoped that adding a class variable to the frontmatter, would cause an input field in the Admin panel, so that my client can change the classes per page.
I did not manage to make this work. Is there another way to make this work?