First iteration bookshelf

This commit is contained in:
2023-04-23 14:17:06 -05:00
parent b82d00fa3a
commit 02dc26d54b
14 changed files with 98 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
{% macro bookshelf(books) %}
<a href="/books">
<div class="bookshelf">
{% for i in books.selection %} {% set book = books.books[i] %}
<a href="/books#'{{i}}'">
<div class="book">
<img
alt="{{ i }} cover"
src="{{ url_for('static', filename=('photos/books/' + book.filename))}}"
/>
<h4>{{ i }}</h4>
</div>
</a>
{% endfor %}
</div>
</a>
{% endmacro %}