Skip to content

Commit

Permalink
longer preview content
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesthebrooks committed Oct 16, 2024
1 parent 0b63fe4 commit a621c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/collection-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ <h3 class="title">

<p class="usa-collection__description">
{%- if post.data.excerpt -%}
{{ post.data.excerpt | truncatewords: 10 }}
{{ post.data.excerpt | truncatewords: 50 }}
{%- else -%}
{{ post.content | striptags | truncatewords: 10 }}
{{ post.content | striptags | truncatewords: 50 }}
{%- endif -%}
</p>
<ul class="usa-collection__meta" aria-label="More information">
Expand Down

0 comments on commit a621c39

Please sign in to comment.