Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Slug Variable #44

Closed
ghost opened this issue Jul 18, 2013 · 2 comments
Closed

Page Slug Variable #44

ghost opened this issue Jul 18, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 18, 2013

Is there a way to use the page slug (file name) in the template? For the life of me I can't figure it out with the available documentation.

@kpavlov
Copy link

kpavlov commented Aug 11, 2013

Resolved. See #47 or #63

@Yago
Copy link

Yago commented Sep 4, 2014

Otherwise, you can use Twig 😉

{{ page.url | split('/') | last }}

@theshka theshka closed this as completed Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants