chore: improve truncation
This commit is contained in:
parent
47a71087c4
commit
e8ae3c1448
6 changed files with 11 additions and 11 deletions
|
@ -5,7 +5,7 @@ permalink: /blogroll.html
|
|||
description: These are awesome blogs that I enjoy and you may enjoy too.
|
||||
---
|
||||
<h2>{{ title }}</h2>
|
||||
<p>You can <a href="/blogroll.opml">Download OPML</a>
|
||||
<p>You can <a href="/blogroll.opml" data-umami-event="Blogroll OPML download">Download OPML</a>
|
||||
download an OPML file</a> containing all of these feeds and import them into your RSS reader.</p>
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
@ -47,7 +47,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 | markdown | truncate: 300 }}</div>{% endif %}
|
||||
{% if book.description %}<div class="description">{{ book.description | normalize_whitespace | markdown | truncatewords: 50 }}</div>{% endif %}
|
||||
</div>
|
||||
</article>
|
||||
{% endfor %}
|
Reference in a new issue