Open spbnick opened 8 years ago
Thanks! That truncate
takes a second argument is super-useful. It also works for truncatewords
. In my case, I needed the parent folder in a page path, and your tip helped me get to {{ page.path | replace: "/", " " | truncatewords: 1, "" }}
.
@arthurattwell You're welcome! I needed it for a similar purpose, also.
Please leave your comments for article "Liquid: truncate without dots" here.