feat: dedicated music page

This commit is contained in:
Cory Dransfeldt 2024-05-18 08:02:57 -07:00
parent 3d08ecfa7a
commit a43598263b
No known key found for this signature in database
38 changed files with 475 additions and 103 deletions

View file

@ -0,0 +1,30 @@
---
title: Currently reading • Books
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 %}
{% capture alt %}{{ book.title }} by {{ book.authors }}{% endcapture %}
<article class="book-entry">
<a href="{{ book.url }}">
<img src="https://coryd.dev/.netlify/images/?url={{ book.image }}&fm=webp&q=80&w=137&h=209&fit=cover" alt="{{ alt }}" loading="eager" decoding="async" width="137" height="209" />
</a>
<div class="book-meta">
<a href="{{ book.url }}">
<p class="title"><strong>{{ book.title }}</strong></p>
</a>
{% if book.authors or book.categories %}
<p class="author-categories">{% if book.authors %}By {{ book.authors }}{% endif %}{% if book.categories %}{% if book.authors %}• {% endif %}<em>{{ book.categories }}</em>{% endif %}</p>
{% endif %}
{% if book.description %}<blockquote class="description">{{ book.description }}</blockquote>{% endif %}
</div>
</article>
{% endfor %}

View file

@ -0,0 +1,25 @@
---
title: Want to read • Books
layout: default
pagination:
data: collections.booksToRead
alias: books
size: 30
permalink: "/books/want-to-read/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber | plus: 1 }}/{% endif %}index.html"
---
{% if pagination.pageNumber == 0 %}
<h2 class="page-header">Want to read</h2>
<p>These are books I want to read, sorted in alphabetical order. As one would expect, it will change as I navigate through and add to it.</p>
<hr class="large-spacing" />
{% endif %}
<ul class="link-list reduced-spacing">
{% for book in pagination.items %}
<li>
<a href="{{ book.url }}">
<strong>{{ book.title }}</strong>
</a>
{% if book.authors %}by {{ book.authors }}{% endif %}{% if book.categories %} • <em>{{ book.categories }}</em>{% endif %}
</li>
{% endfor %}
</ul>
{% render "partials/widgets/paginator.liquid", pagination:pagination %}

View file

@ -0,0 +1,7 @@
---
title: 2020 • Books
year: 2020
layout: book-year
permalink: "/books/years/2020.html"
---
<p>This is everything I read in 2020. My favorites were: every book in <em>The Expanse</em> series and <em>I'll Be Gone in the Dark</em>.</p>

View file

@ -0,0 +1,7 @@
---
title: 2021 • Books
year: 2021
layout: book-year
permalink: "/books/years/2021.html"
---
<p>This is everything I read in 2021. My favorites were: <em>This Is How They Tell Me The World Ends</em>, <em>Sandworm</em>, <em>Empire of Pain</em>, <em>Say Nothing</em>, <em>Sigh, Gone</em> and <em>Leviathan Falls</em>.</p>

View file

@ -0,0 +1,7 @@
---
title: 2022 • Books
year: 2022
layout: book-year
permalink: "/books/years/2022.html"
---
<p>This is everything I read in 2022. My favorites were: <em>Sellout</em>, <em>The Sins of Our Fathers</em>, <em>Drive</em>, <em>Adnan's Story</em> and <em>The Lazarus Heist</em>.</p>

View file

@ -0,0 +1,7 @@
---
title: 2023 • Books
year: 2023
layout: book-year
permalink: "/books/years/2023.html"
---
<p>This is everything I read in 2023. My favorites were: <em>Stay True</em>, <em>Where Are Your Boys Tonight?</em>, <em>Trouble Boys</em>, <em>Tracers in the Dark</em> and <em>Girl in a Band</em>.</p>

View file

@ -0,0 +1,7 @@
---
title: 2024 • Books
year: 2024
layout: book-year
permalink: "/books/years/2024.html"
---
<p>This is everything I've read in 2024 — continuing my trend of concentrating on science fiction, tech coverage, pop sci, autobiographies and coverage of musicians I appreciate.</p>