{% extends "base.html" %} {% block content %}

Browse Books

Discover your next great read from our collection

{% if books.items %}
{% for book in books.items %}
{{ book.title }}
by {{ book.author }}

{{ book.description[:120] }}{% if book.description|length > 120 %}...{% endif %}

{{ book.genre }} {% if book.publication_year %} {{ book.publication_year }} {% endif %}
{% set rating = book.get_average_rating() %} {% for i in range(1, 6) %} {% endfor %} ({{ book.get_rating_count() }} reviews)
{% if book.pages %} {{ book.pages }} pages {% endif %}
{% endfor %}
{% if books.pages > 1 %} {% endif %} {% else %}

No Books Found

Try adjusting your search criteria or browse all books.

Clear Filters
{% endif %}
{% endblock %}