{% extends "base.html" %} {% block title %}My to-read books{% endblock %} {% block content %}
{% set total = books|length %} {% set reading_count = books|selectattr('status', 'equalto', 'reading')|list|length %} {% set finished_count = books|selectattr('status', 'equalto', 'finished')|list|length %}Total books
{{ total }}
Reading now
{{ reading_count }}
Finished
{{ finished_count }}
You haven't added any books yet.
+ Add your first book