fix: truncation
This commit is contained in:
parent
c04c69fcbd
commit
7fb22f6d62
7 changed files with 116 additions and 554 deletions
|
@ -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 %}
|
Reference in a new issue