You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add the cutoff parameter found in the original version of Hacksaw back in (both for legacy reasons and also because it might prove useful in some cases).
Another way to limit content is by a cutoff string. This is similar to the way WordPress's "more" feature works. In your content you could add a specific string to indicate the spot you want the excerpt to stop. Let's say you want to use <!-- END --> to cut the excerpt off at that location; you would do this:
{{ entry.richTextField | hacksaw (cutoff='<!-- END -->') }}
The text was updated successfully, but these errors were encountered:
We should add the
cutoff
parameter found in the original version of Hacksaw back in (both for legacy reasons and also because it might prove useful in some cases).The text was updated successfully, but these errors were encountered: