The number of books on main page is rendered as 6 while in fact it's 100+:
It got broken by the following commit: https://github.com/belaudiobooks/website/commit/7bff41315caf84ff29f10149f50efaf71429787a In that commit I optimized rendering performance of the main page. Previously we loaded all books and iterated through the first 6 books for rendering. Now we load only the first 6 books. We should count books be genres and pass it as a separate field to the page template.
The number of books on main page is rendered as 6 while in fact it's 100+:
It got broken by the following commit: https://github.com/belaudiobooks/website/commit/7bff41315caf84ff29f10149f50efaf71429787a In that commit I optimized rendering performance of the main page. Previously we loaded all books and iterated through the first 6 books for rendering. Now we load only the first 6 books. We should count books be genres and pass it as a separate field to the page template.