Skip to content

Commit

Permalink
Fix path to book (#173)
Browse files Browse the repository at this point in the history
* Fix path to book

* Update books.html
  • Loading branch information
katydecorah authored May 28, 2024
1 parent 613dbe5 commit d4e7e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions _includes/post/books.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
</div>
{% else %}
<div class="book-img">
<img
loading="lazy"
alt=""
src="https://yo.katydecorah.com/book-{{book.isbn}}.png"
/>
{% capture image %}{% if book.image %}{{book.image}}{% else
%}book-{{book.isbn}}.png{% endif %}{% endcapture %}
<img loading="lazy" alt="" src="https://yo.katydecorah.com/{{image}}" />
</div>
<div>
<div class="book-name"><strong>{{ book.title }}</strong></div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 id="now-reading" style="margin-top: 2rem">Now reading</h2>
<img
loading="lazy"
alt=""
src="https://yo.katydecorah.com/book-{{nowReading.isbn}}.png"
src="https://yo.katydecorah.com/{{nowReading.image}}"
/>
<div>
<strong>{{nowReading.title}}</strong><br />by {{nowReading.authors |
Expand Down

0 comments on commit d4e7e04

Please sign in to comment.