chore: add goodreads data

This commit is contained in:
Cory Dransfeldt 2023-08-04 11:48:06 -07:00
parent 4dcbc55c74
commit 951284c62b
No known key found for this signature in database
12 changed files with 47 additions and 219 deletions

View file

@ -7,7 +7,7 @@
<link href="{{ pkg.homepage }}/books.xml" rel="self" />
<link href="{{ pkg.homepage }}/" />
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/" />
<updated>{% block update %}{{ book[0].started | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
<updated>{% block update %}{{ books[0].dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.name }}</name>

View file

@ -0,0 +1,7 @@
<a
class="link--icon"
href="https://www.goodreads.com/cdransf"
rel="me"
title="Goodreads">
{% tablericon "books" "Goodreads" "height=24" %}
</a>

View file

@ -7,6 +7,7 @@
{% render "icons/spotify.liquid" %}
{% render "icons/letterboxd.liquid" %}
{% render "icons/trakt.liquid" %}
{% render "icons/goodreads.liquid" %}
{% render "icons/coffee.liquid" %}
</div>
<p class="text-sm text-gray-500 dark:text-gray-100 pb-8 text-center">

View file

@ -8,7 +8,7 @@
<a href="{{book.link}}" title="{{book.title | escape}}">
<div class="relative block" style="max-width:226px">
<div class="absolute left-0 top-0 h-full w-full rounded-lg border border-purple-600 hover:border-purple-500 dark:border-purple-400 dark:hover:border-purple-500"></div>
{%- capture bookImg %}{{book.cover}}{% endcapture -%}
{%- capture bookImg %}{{book.image}}{% endcapture -%}
{%- capture bookName %}{{book.title | escape}}{% endcapture -%}
{% image bookImg, bookName, 'rounded-lg w-full h-full', '180px' %}
</div>