-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooks.html
26 lines (25 loc) · 900 Bytes
/
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
---
layout: default
title: Books
---
<table class="books">
{%- for book in site.data.books -%}
<tr class="book-item">
<td class="book-title-cont">
<span class="book-shade" style="--data-size:{{ book.Pages }}"></span>
<span class="book-title">
<span itemprop=name>{{ book.Title }}</span>
{% if book.Reread and book.Reread != "n" %}<span title="Re-read" class="meta">(RR)</span>{% endif %}
{% if book.Audiobook and book.Audiobook != "n" %}<span title="Audiobook" class="meta">(AB)</span>{% endif %}
</span>
</td>
<td class="book-author" itemprop=author>{{ book.Author }}</td>
<td class="book-date" itemprop=dateCreated>{{ book.Read | date: "%e %b %Y" }}</td>
<td class="book-rating">
{% for i in (1..book.Rating) %}
<img class="star" src="/assets/star.svg">
{% endfor %}
</td>
</tr>
{%- endfor -%}
</table>