feat: book progress bars

This commit is contained in:
Cory Dransfeldt 2024-06-02 12:55:59 -07:00
parent cc2ca7d134
commit d31ce9b2cd
No known key found for this signature in database
6 changed files with 24 additions and 5 deletions

View file

@ -44,6 +44,10 @@ schema: books
{% if book.author %}
<p class="sub-meta">By {{ book.author }}</p>
{% endif %}
{% if book.progress %}
{%- assign percentage = book.progress | append: '%' -%}
{% render "partials/media/progress-bar.liquid", percentage:percentage %}
{% endif %}
{% if book.description %}<blockquote class="description">{{ book.description }}</blockquote>{% endif %}
</div>
</article>