mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-11-23 02:23:18 -06:00
59 lines
1.7 KiB
HTML
Executable File
59 lines
1.7 KiB
HTML
Executable File
{% block content %}
|
|
<div class="page">
|
|
<header class="page-head">
|
|
<h1 class="display">Bookshelf</h1>
|
|
<p class="lede">
|
|
You can't judge a book by its cover, but you can judge a person by their
|
|
bookshelf. Short reviews of what I've read, favorites first.
|
|
</p>
|
|
</header>
|
|
|
|
<section class="section" aria-labelledby="fav-heading">
|
|
<div class="section-head">
|
|
<h2 id="fav-heading">Favorites</h2>
|
|
</div>
|
|
<ul class="cover-row" aria-label="Favorite books">
|
|
{% for i in var.books.selection %}
|
|
<li>
|
|
<a href="#'{{ i }}'" title="{{ i }}">
|
|
<img
|
|
alt="{{ i }}"
|
|
src="{{ url_for('static', filename=('photos/books/' + var.books.books[i].filename)) }}"
|
|
loading="lazy"
|
|
width="80"
|
|
height="120"
|
|
/>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
|
|
<section class="section" aria-labelledby="reviews-heading">
|
|
<div class="section-head">
|
|
<h2 id="reviews-heading">All reviews</h2>
|
|
<p class="section-note">{{ var.books.books | length }} books</p>
|
|
</div>
|
|
<ul class="review-list">
|
|
{% for i in var.books.books %}
|
|
<li id="'{{ i }}'" class="review">
|
|
<img
|
|
class="review-cover"
|
|
alt=""
|
|
src="{{ url_for('static', filename=('photos/books/' + var.books.books[i].filename)) }}"
|
|
loading="lazy"
|
|
width="80"
|
|
height="120"
|
|
/>
|
|
<div class="review-body">
|
|
<h3>{{ i }}</h3>
|
|
<p>{{ var.books.books[i].review }}</p>
|
|
<p class="review-link"><a href="{{ var.books.books[i].link }}" rel="noopener noreferrer">Where to find it</a></p>
|
|
</div>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
</div>
|
|
{% endblock %}
|