Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, 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 →