-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooks.html
26 lines (23 loc) · 1.46 KB
/
books.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
permalink: /on/books/
description: Writing about books helps me figure out what I think about them.
---
<p class="u-centered mr-md ml-md">Hi!<br>You’ll notice I’ve stopped keeping track of the books I read. I found it made me focus too much on getting to the <em>end</em> of a book, and not enough on what I was getting <em>out</em> of it. These days, I’m keeping track of what I learn from books in an app I built, <a href="https://note.garden/stevegrossi/">note.garden.com/stevegrossi</a>. See you there!</p>
{% assign books_by_year = site.books | where_exp: "book", "book.finished" | sort: "started" | group_by_exp: "book", "book.started | slice: 0, 4" | reverse %}
{% for book_year in books_by_year %}
<h2 class="u-centered">{{ book_year.name }}</h2>
<ol class="ThumbList">
{% for book in book_year.items %}
<li class="ThumbList-item">
{% assign book_post = site.posts | where: "book", book.slug | first %}
{% if book_post %}
<a href="/on/{{ book_post.slug }}">
<img src="{% if book.asin %}https://images-na.ssl-images-amazon.com/images/P/{{ book.asin }}.01.LZZZZZZZ.jpg{% else %}/img/{{ book.slug }}.jpg{% endif %}" class="ThumbList-thumb Cover" />
</a>
{% else %}
<img src="{% if book.asin %}https://images-na.ssl-images-amazon.com/images/P/{{ book.asin }}.01.LZZZZZZZ.jpg{% else %}/img/{{ book.slug }}.jpg{% endif %}" class="ThumbList-thumb Cover" />
{% endif %}
</li>
{% endfor %}
</ol>
{% endfor %}