Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Maleika Esther Attawel Newcomer

@maleika · Joined 2 years ago · 3 posts · 1 topics · 1 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Change the body class if page uses default.html.twig · 2 years ago

    Thank you so much for your invaluable response! It was a naming error. I had used single_project.md instead of single-project.md for the corresponding Twig template which is why it resorted to the def

  • Change the body class if page uses default.html.twig · 2 years ago

    For now, I've changed my approach by adding a css_class to my .md files. This works well. <body class="{{ page.header.css_class }}"> I'd still be interested to know if what I tried in my initial

  • Change the body class if page uses default.html.twig · 2 years ago

    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