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
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
Hello!
{{page.parent.slug}}
Or you could use {{ home_url }}
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 15 | 1138 | 3 days ago | ||
| 3 | 220 | 2 weeks ago | ||
| 0 | 138 | 3 weeks ago | ||
| 1 | 233 | 3 weeks ago | ||
| 1 | 357 | 3 weeks ago |