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 |
|---|---|---|---|---|
| 3 | 193 | 2 weeks ago | ||
| 0 | 111 | 2 weeks ago | ||
| 1 | 206 | 3 weeks ago | ||
| 1 | 324 | 3 weeks ago | ||
| 6 | 1523 | 3 weeks ago |