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

@ -5,13 +5,13 @@ permalink: /books.xml
{% layout "./_includes/feeds/books.liquid" %}
{% block title %}Books • Cory Dransfeldt{% endblock %}
{% block self %}books.xml{% endblock %}
{% block update %}{{ articles[0].time | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{% block update %}{{ books[0].dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{% block entries %}
{% for book in books %}
<entry>
<title>{{ book.title | escape }}</title>
<link href="{{book.link}}" />
<updated>{{ book.started | date: "%m.%d.%Y" }}</updated>
<updated>{{ book.dateAdded | date: "%m.%d.%Y" }}</updated>
<id>{{ book.link }}</id>
<content type="html"></content>
</entry>

View file

@ -12,8 +12,8 @@ permalink: '/books.json'
"id": "{{ book.link }}",
"title": "{{ book.title | escape }}",
"url": "{{ book.link }}",
"content_text": "",
"date_published": "{{ book.started | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
"content_text": "{{ book.description | strip_html }}",
"date_published": "{{ book.dateAdded | date: "%Y-%m-%dT%H:%M:%S-08:00" }}"
}{% if not forloop.last %},{% endif %}
{% endfor %}
]

View file

@ -5,7 +5,7 @@ permalink: /links.xml
{% layout "./_includes/feeds/links.liquid" %}
{% block title %}Links • Cory Dransfeldt{% endblock %}
{% block self %}links.xml{% endblock %}
{% block update %}{{ link[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{% block update %}{{ links[0].date | date: "%Y-%m-%dT%H:%M:%S-08:00" }}{% endblock %}
{% block entries %}
{% for link in links %}
<entry>