mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 09:15:41 +03:00
427 B
427 B
title
| title |
|---|
| truncate |
truncate shortens a string down to the number of characters passed as a parameter. If the number of characters specified is less than the length of the string, an ellipsis (...) is appended to the string and is included in the character count.
{% raw %}
{{ "Ground control to Major Tom." | truncate: 20 }}
{% endraw %}
{{ "Ground control to Major Tom." | truncate: 20 }}