Hi, I'm new to Grav and would like to assign the default.html.twig template a specific class.
Scenario: I am building a portfolio page that contains several pages, each of which are assigned different body classes in my CSS.
Pages:
pages /
/01.home
/02.about
/03.work
/single-project-folder-1
/single-project-folder-2
For the work page, I've created a work.html.twig template and a work-item.html.twig template.
When I click any item on the work page, it links to the single item and uses the default.html.twig template. I'm not sure how I can change it to something else.
I created different CSS classes for the body element in base.html.twig. I call them like so:
<body class="{{ page.title|lower|replace({' ': '-'}) }}">
This works for all pages. However, I want the single project item that uses default.html.twig to have a specific class of 'test' rather than the page title.
I feel like it's something simple that I am overlooking. If you have any pointers, I'd greatly appreciate it. Thanks!