Since you don't always know how many segments your URL will have, you can always grab the last segment.
Example URL: /nestled/safely/under/our/tree
{{ last_segment }}
{{ $last_segment }}
tree
last_segment
Since you don't always know how many segments your URL will have, you can always grab the last segment.
Example URL: /nestled/safely/under/our/tree
{{ last_segment }}
{{ $last_segment }}
tree
Submit improvements, related content, or suggestions through Github.
Betterify this page →