mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
First iteration bookshelf
This commit is contained in:
17
src/templates/partials/bookshelf.html
Normal file
17
src/templates/partials/bookshelf.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user