fix: progress bar display

This commit is contained in:
Cory Dransfeldt 2024-08-13 08:11:18 -07:00
parent 7d497f2b5e
commit 922230ac24
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "22.2.6", "version": "22.2.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "coryd.dev", "name": "coryd.dev",
"version": "22.2.6", "version": "22.2.7",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cdransf/api-text": "^1.5.0", "@cdransf/api-text": "^1.5.0",

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "22.2.6", "version": "22.2.7",
"description": "The source for my personal site. Built using 11ty (and other tools).", "description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -41,10 +41,10 @@ schema: book
{% if book.status == 'finished' %} {% if book.status == 'finished' %}
<p class="sub-meta">Finished on: {{ book.date | date: "%B %e, %Y" }}</p> <p class="sub-meta">Finished on: {{ book.date | date: "%B %e, %Y" }}</p>
{% endif %} {% endif %}
{% unless book.status == 'finished' %} {% if book.status == 'started' %}
{%- assign percentage = book.progress | append: '%' -%} {%- assign percentage = book.progress | append: '%' -%}
{% render "partials/media/progress-bar.liquid", percentage:percentage %} {% render "partials/media/progress-bar.liquid", percentage:percentage %}
{% endunless %} {% endif %}
<p class="sub-meta"><a href="https://openlibrary.org/isbn/{{ book.isbn }}" title="View {{ book.title | escape }} on Open Library">View on Open Library</a></p> <p class="sub-meta"><a href="https://openlibrary.org/isbn/{{ book.isbn }}" title="View {{ book.title | escape }} on Open Library">View on Open Library</a></p>
</div> </div>
</div> </div>