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 →

Get the slug of the mother page

Started by Dr Zoidberg 9 years ago · 2 replies · 1097 views
9 years ago

Hello there, im making my very first site with Grav and i want know if i can get the mother page slug in a children page template.

Ex: In the template page for url "/blog/general/first-post" show the "general" page slug

9 years ago

Or you could use {{ home_url }}

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by themetman, 6 days ago
1 103 3 days ago
Themes & Styling · by AH, 3 weeks ago
1 223 3 days ago
Themes & Styling · by Bruno, 4 years ago
6 1386 3 days ago
Themes & Styling · by TomW, 3 weeks ago
2 227 5 days ago
Themes & Styling · by FrViPofm, 2 months ago
4 687 2 months ago