Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Add blog page title to blog item page view

Started by Joachim Kasper 9 years ago · 1 replies · 1421 views
9 years ago

I get stuck by printing the formatter title from a blog page to the page itself.

Can someone give me a hint how to check and for the blog item page with twig in the blog.html.twig and add the title and remove the sitebar, please?

9 years ago

Hi @achikas, for displaying the title of a page you could add something like this at the begining of a template file that displays a page:

<h1>{{ page.title }}</h1>

This assumes that the title of the page has been defined in the page frontmatter.

What theme are you trying to remove the sidebar of?

Cheers,
Paul

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 2 weeks ago
3 191 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 110 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 205 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 323 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1522 3 weeks ago