From dc3b26447948686d380636a428a100a685ee2c02 Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Thu, 28 Dec 2023 21:59:58 +0100 Subject: [PATCH] :sparkles: added entrycount to my logs Signed-off-by: Sindre Kjelsrud --- src/pages/logs/books.astro | 6 +++--- src/pages/logs/watched.astro | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/pages/logs/books.astro b/src/pages/logs/books.astro index 1e9e66a..9e1ddb4 100644 --- a/src/pages/logs/books.astro +++ b/src/pages/logs/books.astro @@ -25,13 +25,13 @@ function getEmojiStars(rating:any) {

๐Ÿ“š ยฟDรณnde estรก la biblioteca?

2023 - Currently Reading:

-

๐Ÿ“– Barack Obama: A Promised Land

+

๐Ÿ“– The Summit Of The Gods: Vol.1

{sortedYears.map(year => (
-
{year} - Finished
+
{year} - Finished

({booksByYear[year].length} entries)

    { - books.map((book) => ( + booksByYear[year].map((book) => (

    {book.title} - {book.author}

    {getEmojiStars(book.my_rating)}

    diff --git a/src/pages/logs/watched.astro b/src/pages/logs/watched.astro index 5a98afa..3acf5e1 100644 --- a/src/pages/logs/watched.astro +++ b/src/pages/logs/watched.astro @@ -29,19 +29,20 @@ function getEmojiStars(rating:any) {

    ๐Ÿ‘€ Star Wars: The Clone Wars S02

    ๐Ÿ‘€ JUJUTSU KAISEN S02

    {sortedYears.map(year => ( -
    -
    {year} - Finished
    -
      +
      +
      {year} - Finished

      ({tvByYear[year].length} entries)

      +
        { - watched.map((tv) => ( -
        -

        {tv.title}

        -

        {getEmojiStars(tv.my_rating)}

        -
        + tvByYear[year].map(tv => ( +
      • +

        {tv.title}

        +

        {tv.type}

        +

        {getEmojiStars(tv.my_rating)}

        +
      • )) }
      -
      - ))} +
    + ))}
\ No newline at end of file