Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Just exceptional. Thank you so much, Jack, you smashed it.

— Hugo, Developer

excerpt Modifier

Generate an excerpt from your content.

Breaks a string at a given marker. Uses <!--more--> by default.

---
title: 'Example Entry'
---
Lorem Ipsum dolor sit amet.<!--more--> consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Massa id neque aliquam vestibulum.
{{ books | excerpt }}
{{ Statamic::modify($books)->excerpt() }}
Lorem Ipsum dolor sit amet.

You can override the marker by passing an alternative as the first parameter:

{{ books | excerpt:<!-- end --> }}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →