From 324483df99ff991f00794143a15f59486c6c1643 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 28 Jun 2023 21:19:22 -0700 Subject: [PATCH] chore: add authors --- src/_data/books.js | 1 + src/_includes/now.liquid | 1 + 2 files changed, 2 insertions(+) diff --git a/src/_data/books.js b/src/_data/books.js index 2daf15ef..50f5c3ba 100644 --- a/src/_data/books.js +++ b/src/_data/books.js @@ -19,6 +19,7 @@ module.exports = async function () { })?.['cover_i'] books.push({ title: book.title, + author: book['authors'][0].name, url: `https://oku.club/book/${book.slug}`, cover: coverId ? `https://books.coryd.dev/b/id/${coverId}-L.jpg` diff --git a/src/_includes/now.liquid b/src/_includes/now.liquid index eb529c97..27800f19 100644 --- a/src/_includes/now.liquid +++ b/src/_includes/now.liquid @@ -124,6 +124,7 @@ layout: main
{{ book.title }}
+
{{ book.author }}
{%- capture bookImg %}{{book.cover}}{% endcapture -%} {%- capture bookName %}{{book.title | escape}}{% endcapture -%}