Blot

The number of posts displayed on the tagged pages?

The number set in “Posts per page” on the index page is affecting the number of posts displayed on the tagged pages.

Is it supposed to work like this? Do you have any plans to fix it?

Asked a year ago Edit
3 replies

Sorry about this! I had to implement this change because when sites have huge quantities of posts (10k+), the huge query response was crashing the server.

Can you send us a link to your site? I'll be happy to adjust your template to fix. Please let me know if you have any questions about this or anything else

a year ago Edit

Mine is having the same issue :( heydingus.net

a year ago Edit

To fix this, please open up your template's package.json file.

And underneath the line:

"page_size": ...,

Can you please add:

"tagged_page_size": 200,

That should increase the number of posts per page on the tag indexes. If you have more than 200 posts with a single tag, and want to actually add the code to render the pagination links, you can copy the following code into tagged.html:

{{#pagination}}
<div class="pagination">
    {{#previous}}
    <a href="/tagged/{{slug}}/page/{{previous}}">← Newer</a>
    {{/previous}}
    Page {{current}} of {{total}}
    {{#next}}
    <a href="/tagged/{{slug}}/page/{{next}}">Older →</a>
    {{/next}}
</div>
{{/pagination}}

Please let me know if you have any questions about this or anything else. If you send us a link to your site I'll be happy to adjust your template to fix.

a year ago Edit

Your reply