When you look at a paginated view of the articles (e.g. tag page), it always looks like you've reached the end because the articles don't fill up the space available.
This is due to a combination of:
- the
DEFAULT_PAGINATION = 5 setting on the example blog, the documentation should recommend a multiple of 6 be used (to neatly fit the 3 -> 2 -> 1 responsive layout); and
- on the first page (arguably the worst place to imply you've reached the end!) one article is taken out to be the larger preview.
The latter is handled by:
|
{% if articles and not articles_page.has_previous() %} |
|
{% with article = articles[0] %} |
|
<aside id="featured" class="body"> |
|
<article> |
|
<h1 class="title"> |
|
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a> |
|
</h1> |
|
{% include 'article_infos.html' %} |
|
<div class="section"> |
|
{% if BULRUSH_SHOW_SUMMARY %} |
|
{{ article.summary }} |
|
<p><a href="{{ SITEURL }}/{{ article.url }}">Read more...</a></p> |
|
{% else %} |
|
{{ article.content }} |
|
{% endif %} |
|
{% include 'comments.html' %} |
|
</div> |
|
</article> |
|
</aside> |
|
{% endwith %} |
|
{% with article_list = articles_page.object_list[1:] %} |
|
{% include 'article_list.html' %} |
|
{% endwith %} |
|
{% else %} |
|
{% with article_list = articles_page.object_list %} |
|
{% include 'article_list.html' %} |
|
{% endwith %} |
|
{% endif %} |
I'm not sure of the best way to do that - the page sizes are always going to be consistent, I don't see a way to say "x + 1 for the first page and x thereafter" - that leaves either repeating the first item (once in the preview, once in the list) or simply omitting the expanded preview entirely.
First page

Nth page

When you look at a paginated view of the articles (e.g. tag page), it always looks like you've reached the end because the articles don't fill up the space available.
This is due to a combination of:
DEFAULT_PAGINATION = 5setting on the example blog, the documentation should recommend a multiple of 6 be used (to neatly fit the 3 -> 2 -> 1 responsive layout); andThe latter is handled by:
bulrush/bulrush/templates/index.html
Lines 4 to 31 in 32a08fb
I'm not sure of the best way to do that - the page sizes are always going to be consistent, I don't see a way to say "x + 1 for the first page and x thereafter" - that leaves either repeating the first item (once in the preview, once in the list) or simply omitting the expanded preview entirely.
First page
Nth page