bookshelf-generator/bookshelf.html

37 lines
634 B
HTML

<html>
<head>
<style>
.cover-image {
width: 200px;
}
.book-item {
margin-bottom: 100px;
}
.main {
max-width: 600px;
margin: auto;
}
</style>
</head>
<body>
<div>
bookshelf
</div>
<div class="main">
{% for book in books %}
<div class="book-item">
<div>
<img src="{{book.cover_image_path}}" class="cover-image"/>
</div>
<div>
{{ book.title }} by {{ book.author }} {% if book.published_year %} ({{book.published_year}}) {% endif %}
</div>
</div>
{% endfor %}
</div>
</body>
</html>