Skip to content

{{excerpt}} helper ignores words parameter beyond ~70 words #48

@jpeacock29

Description

@jpeacock29

Path: /themes/helpers/data/excerpt

Description

The {{excerpt}} Handlebars helper appears to have an undocumented hard cap of approximately 70 words. Passing words="500" or any
higher value does not increase the output beyond this limit.

Steps to reproduce

  1. Create a post with 500+ words of body content
  2. In a theme template, use {{excerpt words="500"}}
  3. Observe that the output is approximately ~70 words

Expected behavior

{{excerpt words="500"}} should return up to 500 words of stripped text from the post body.

Actual behavior

Output is capped at ~70 words regardless of the words parameter value. The text also cuts off mid-word, suggesting the limit may
actually be character-based (~500 characters) rather than word-based.

Workaround

Use {{content}} instead, wrapped in a container with overflow: hidden and CSS to neutralize HTML formatting. This returns the
full post body as HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions