- <%foreach albums album>
- <%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
- <%if loop.count|mod divisor=3><div class="album-row"><%/if>
+ <%foreach albums album|paginate pageSize=core.preferences.imagesPerPage pageParameter=request.page pagination=albumPagination>
+ <%first>
+ <h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2>
+ <%include include/pagination.html pagination=albumPagination pageParameter=="page">
+ <%/first>
+ <%if loop.count|mod divisor==3><div class="album-row"><%/if>