cliveportman/code

Truncate text with ellipsis using Twig in Craft CMS without a plugin

{{ entry.title | length > 75 ? entry.title | slice(0, 75) ~ '...' : entry.title }}

No plugin required, which is generally my preference. Hat tip.