mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
bookshelf style
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
{% 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 %}
|
||||
<h5 class="bookshelfHeader">I read things:</h5>
|
||||
<div class="bookContainer">
|
||||
{% 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>
|
||||
</div>
|
||||
</a>
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user