Fix blog layout

The calculation for the rowcount in the blog layout is wrong and caused havoc on the template under certain settings.
This PR fixes the calculation and makes it also a bit simpler.