fix: book references

This commit is contained in:
Cory Dransfeldt 2024-06-01 10:17:36 -07:00
parent abacd51cde
commit 52d80865ca
2 changed files with 4 additions and 4 deletions

View file

@ -35,8 +35,8 @@ schema: book
<div class="book-meta"> <div class="book-meta">
<p class="title"><strong>{{ book.title }}</strong></p> <p class="title"><strong>{{ book.title }}</strong></p>
{% if book.rating %}<p>{{ book.rating }}</p>{% endif %} {% if book.rating %}<p>{{ book.rating }}</p>{% endif %}
{% if book.authors or book.categories %} {% if book.author %}
<p class="sub-meta">{% if book.authors %}By {{ book.authors }}{% endif %}{% if book.categories %}{% if book.authors %} • {% endif %}{{ book.categories }}{% endif %}</p> <p class="sub-meta">By {{ book.author }}</p>
{% endif %} {% endif %}
{% if book.status == 'finished' %}<p class="sub-meta">Finished on: {{ book.date | date: "%B %e, %Y" }}</p>{% endif %} {% if book.status == 'finished' %}<p class="sub-meta">Finished on: {{ book.date | date: "%B %e, %Y" }}</p>{% 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>

View file

@ -41,8 +41,8 @@ schema: books
<a href="{{ book.url }}"> <a href="{{ book.url }}">
<p class="title"><strong>{{ book.title }}</strong></p> <p class="title"><strong>{{ book.title }}</strong></p>
</a> </a>
{% if book.authors or book.categories %} {% if book.author %}
<p class="sub-meta">{% if book.authors %}By {{ book.authors }}{% endif %}{% if book.categories %}{% if book.authors %} • {% endif %}{{ book.categories }}{% endif %}</p> <p class="sub-meta">By {{ book.author }}</p>
{% endif %} {% endif %}
{% if book.description %}<blockquote class="description">{{ book.description }}</blockquote>{% endif %} {% if book.description %}<blockquote class="description">{{ book.description }}</blockquote>{% endif %}
</div> </div>