Enable pagination for categories only

Is it possible to diable pagination for front-page but not for category lists?
If I disable pagination in the baseof.html file it is gone everywehere, of course.

I don’t know what that means.

Which theme are you using?
Have you modified the theme?

See Requesting Help.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

1 Like

Thank you for your reply!
I’m sorry for the lack of information.

It is the story theme from Baron Schwartz: GitHub - xaprb/story: Beautiful responsive Hugo blog theme focused on simplicity and elegance, with many extra features including presentations, math typesetting, music notation, and search.

Mine meanwhile has got another navigation and other little mods but It is not modified considering this matter or any structure changes e.g. baseof.html and so on.
I could create a repo when needed for investigation.

Don’t do that.

From the root of your project:

mkdir layouts
cp themes/story/layouts/index.html layouts/

Then, in layouts/index.html, delete this part

{{ define "pagination" }}
  <footer class="w-100 sans-serif" role="contentinfo">
    <nav class="w-third-l pb3 f6 center db" role="navigation">
      {{- template "_internal/pagination.html" . -}}
{{ end }}

Also note that the last meaningful update to this theme was over four years ago.

1 Like

Ok, I don’t touch the baseof.html

Thank you very much. This is a really good change :slight_smile:

I know of the unfortunate decision of outcast the theme. He answered once that he is not willing to work at it anymore.
I’m already looking for a successor theme. Because of all styling changes made at the story theme I haven’t decided to switch over yet.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.