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?
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
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?
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
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 197 | 2 months ago | ||
| 3 | 92 | 2 months ago | ||
| 11 | 454 | 3 months ago | ||
| 0 | 47 | 3 months ago | ||
| 5 | 127 | 3 months ago |