fix: truncation

This commit is contained in:
Cory Dransfeldt 2024-10-15 17:50:16 -07:00
parent c04c69fcbd
commit 7fb22f6d62
No known key found for this signature in database
7 changed files with 116 additions and 554 deletions

View file

@ -44,7 +44,7 @@ schema: books
{%- assign percentage = book.progress | append: '%' -%}
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
{% endif %}
{% if book.description %}<div class="description">{{ book.description | normalize_whitespace | markdown | truncatewords: 50 }}</div>{% endif %}
{% if book.description %}<div class="description">{{ book.description | normalize_whitespace | markdown | htmlTruncate }}</div>{% endif %}
</div>
</article>
{% endfor %}