Created
March 27, 2015 15:45
-
-
Save sskylar/53e079958572d761fd2f to your computer and use it in GitHub Desktop.
Get top-level page slug from nested post/subpage url in Siteleaf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign section = url | remove_first:'/' | split:'/' | first %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can this also be done via 'parent.slug'?