Remove next/previous buttons and left/right keyboard shortcut

I am using the Hugo Learn Theme: Learn | Hugo Themes

It puts next/previous buttons (chevrons) that take up column space, and has a keyboard shortcut: left/right arrow to go next/previous pages.

Is there a way I can disable both the keyboard shortcuts and remove the chevrons to get back that space?

Practically speaking, I am not building a site for which “next/previous” navigation is useful.

I tried searching for variations on “hugo disable pager”, “navigation”, “next/previous buttons” etc but could not find an answer to question. I found the Hugo - Pagination doc page, but could not grok any relevant information from it.

Rob
:slight_smile:

Copy this file to the default layouts folder at the root of your Hugo project with the same path (layouts/partials/footer.html) and remove the highlighted part below

1 Like

Marvelous - thank you very much!

Rob
:slight_smile:

Or, from: Configuration :: Documentation for Hugo Learn Theme

[params]  
   # Hide Next and Previous page buttons normally displayed full height beside content
   disableNextPrev = true

Which seems to do the same thing.

Even better!

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