feat: book counts

This commit is contained in:
Cory Dransfeldt 2024-05-03 16:18:35 -07:00
parent 5e168c7c79
commit e3e24f2499
No known key found for this signature in database
4 changed files with 11 additions and 2 deletions

View file

@ -4,9 +4,11 @@ layout: default
permalink: "/books/index.html"
---
{%- assign bookData = books | bookStatus: 'started' | reverse -%}
{%- assign currentBookCount = books | currentBookCount -%}
<h2 class="page-header">Currently reading</h2>
{% render "partials/banners/rss.liquid", url: "https://feedpress.me/coryd-books", text: "Subscribe to my books feed or follow along on this page" %}
<p>Here's what I'm reading at the moment. <a href="/books/want-to-read/">You can also take a look at what I'm planning to read (eventually).</a></p>
<p>I've finished <strong class="highlight-text">{{ currentBookCount }} books</strong> this year.</p>
<p><a href="/books/years/2024">2024</a><a href="/books/years/2023">2023</a><a href="/books/years/2022">2022</a><a href="/books/years/2021">2021</a><a href="/books/years/2020">2020</a></p>
<hr class="large-spacing" />
{% for book in bookData %}