Modifier: first


Returns the first X characters of a string, where X is any positive integer.

title: 2015 Year Books Photos
{{ title | first:4 }}
2015

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on May 24, 2016