When you search in a Blogger blog, the default maximum items displayed is 20. However, if you click the Older Page link (in Contempo theme: More Posts) in the homepage, the limit is capped by the blog settings on Settings > Posts > Max posts shown on main page.
Let's take a look at the Older Page link:
https://xmlexpr.blogspot.com/search?updated-max=...&max-results=...
Here we have 2 parameters:
updated-max
: The published timestamp of the last post in current page, or in aBlog
widget to be precise.max-results
: The limit of posts retrieved.
What we want is to set the max-results
parameter on the homepage to 20. You can accomplish this by using JavaScript or by modifying the Blog
widget code.
Solution 1 - JavaScript Code
Using JavaScript is simpler. The following script replace any links containing max-results
with max-results=20
.
document.querySelectorAll('[href*="max-results="]').forEach(a => {
a.href = a.href.replace(/max-results=\d+/, 'max-results=20');
});
It's simpler but you may need to add a few checks to make sure it only replace the Older Page link in the homepage.
Solution 2 - Template Code
There's this URL operators that we can use to replace the max-results
param on the Older Page link. The syntax looks like this:
{URL} params {object}
or
params({URL}, {object})
URL
: A URL data.object
: key-value pair for URL parameters.
In our case, URL
is data:olderPageUrl
. Let's take a look on the original Contempo Light theme:
<b:includable id='nextPageLink'>
<a class='blog-pager-older-link flat-button ripple' expr:href='data:olderPageUrl'
expr:title='data:messages.morePosts'>
<data:messages.morePosts />
</a>
</b:includable>
We modify it like so:
... expr:href='data:olderPageUrl params { max-results: 20 }' ...
https://www.blogger.com/rpc_relay.html
https://www.blogger.com/comment/frame/220561901913020919?po=547613748491516080&hl=en&saa=85391&origin=https://xmlexpr.blogspot.com&skin=contempo
https://xmlexpr.blogspot.com/2025/09/custom-max-search-results-in-blogger-homepage-link.html#comments
true