# \#pagination

**URL:** https://discourse.gohugo.io/tag/pagination/18.md

[Latest](https://discourse.gohugo.io/latest.md) · [Categories](https://discourse.gohugo.io/categories.md) · [Tags](https://discourse.gohugo.io/tags.md)

---

## [Best Way to Handle Filters in Hugo (Product Listing Website)](https://discourse.gohugo.io/t/best-way-to-handle-filters-in-hugo-product-listing-website/57042)

<div class="topic-metadata">

**Author:** [@Kevindodiya75](https://discourse.gohugo.io/u/Kevindodiya75)\
**Replies:** 1\
**Last updated:** [April 27, 2026, 6:59pm UTC](https://discourse.gohugo.io/t/best-way-to-handle-filters-in-hugo-product-listing-website/57042 "2026-04-27T18:59:36Z")

</div>

I am building a product marketplace using Hugo. Users can filter products by: Location (always selected, comes from session) Category and Subcategory (subcategory only works if category is selected) Price Range (4 fixe…

---

## [Septn.com — a Hugo portfolio themed after the Godot editor](https://discourse.gohugo.io/t/septn-com-a-hugo-portfolio-themed-after-the-godot-editor/56951)

<div class="topic-metadata">

**Author:** [@sepTN](https://discourse.gohugo.io/u/sepTN)\
**Replies:** 1\
**Last updated:** [April 2, 2026, 2:09am UTC](https://discourse.gohugo.io/t/septn-com-a-hugo-portfolio-themed-after-the-godot-editor/56951 "2026-04-02T02:09:15Z")

</div>

Hey, wanted to share my personal site: septn I contribute to Godot and work with it regularly, so when it came time to build a portfolio I thought: what if the site itself looked like a project open in the editor? …

---

## [Pagination within a single non-home page](https://discourse.gohugo.io/t/pagination-within-a-single-non-home-page/56578)

<div class="topic-metadata">

**Author:** [@santos](https://discourse.gohugo.io/u/santos)\
**Replies:** 1\
**Last updated:** [January 15, 2026, 7:54pm UTC](https://discourse.gohugo.io/t/pagination-within-a-single-non-home-page/56578 "2026-01-15T19:54:29Z")

</div>

I am getting layouts/blog/authors/single.html:40:18": execute of template failed: template: blog/authors/single.html:40:18: executing "main" at \<.Paginate\>: error calling Paginate: pagination not supported for this page…

---

## [In PAGES.Next, page order may not follow Weight depending on the directory structure](https://discourse.gohugo.io/t/in-pages-next-page-order-may-not-follow-weight-depending-on-the-directory-structure/56417)

<div class="topic-metadata">

**Author:** [@hakuoku](https://discourse.gohugo.io/u/hakuoku)\
**Replies:** 2\
**Last updated:** [December 31, 2025, 6:36am UTC](https://discourse.gohugo.io/t/in-pages-next-page-order-may-not-follow-weight-depending-on-the-directory-structure/56417 "2025-12-31T06:36:47Z")

</div>

Helo, Currently, my contents directory is simplified as follows: /contents ├─ tutorial │ ├─ preface │ │ ├─ 1\_beginning.md \<-- weight: 110 │ │ └─ 2\_whatsthis │ │ ├─ index.md \<-- weight: 120 │ │ └─ img.png…

---

## [The page cannot fetch images from assets/images](https://discourse.gohugo.io/t/the-page-cannot-fetch-images-from-assets-images/56350)

<div class="topic-metadata">

**Author:** [@Donghai-Gong](https://discourse.gohugo.io/u/Donghai-Gong)\
**Replies:** 2\
**Last updated:** [December 9, 2025, 2:07pm UTC](https://discourse.gohugo.io/t/the-page-cannot-fetch-images-from-assets-images/56350 "2025-12-09T14:07:03Z")

</div>

Issue description I added a blogroll page to my site today, but when referencing images from assets/images, only the first image loads. The other images fail to load even though the image files actually exist and the pat…

---

## [Pagination problem](https://discourse.gohugo.io/t/pagination-problem/56280)

<div class="topic-metadata">

**Author:** [@Ajdegar](https://discourse.gohugo.io/u/Ajdegar)\
**Replies:** 1\
**Last updated:** [November 24, 2025, 7:54pm UTC](https://discourse.gohugo.io/t/pagination-problem/56280 "2025-11-24T19:54:20Z")

</div>

I had my pagination worked with infinite scrolling. However I want to switch from infinity scrolling (load more posts) to the basic links prev, next, page numbers with active page link in the middle. What to fix in this…

---

## [Need help with getting ".Summary" to work with the 'Stack' theme](https://discourse.gohugo.io/t/need-help-with-getting-summary-to-work-with-the-stack-theme/56034)

<div class="topic-metadata">

**Author:** [@MikeNakis](https://discourse.gohugo.io/u/MikeNakis)\
**Replies:** 11\
**Last updated:** [October 5, 2025, 7:31pm UTC](https://discourse.gohugo.io/t/need-help-with-getting-summary-to-work-with-the-stack-theme/56034 "2025-10-05T19:31:18Z")

</div>

I read the guidelines, which say to contact the author of the theme first, and I did that: However, the author does not seem to post there frequently anymore, therefore my question is unlikely to receive an answer the…

---

## [Render hreflang links on paginator pages in a multilingual project](https://discourse.gohugo.io/t/render-hreflang-links-on-paginator-pages-in-a-multilingual-project/55682)

<div class="topic-metadata">

**Author:** [@jobe](https://discourse.gohugo.io/u/jobe)\
**Replies:** 1\
**Last updated:** [August 15, 2025, 9:24pm UTC](https://discourse.gohugo.io/t/render-hreflang-links-on-paginator-pages-in-a-multilingual-project/55682 "2025-08-15T21:24:07Z")

</div>

Followup from topic 50340… Do you have any idea, how to deal with hreflang links on paginator pages in a mulitlanguage setup? Right now, I have this ugly workaround, which only works if there are the same number of pa…

---

## [How to perform pagination under taxonomy.html?](https://discourse.gohugo.io/t/how-to-perform-pagination-under-taxonomy-html/55419)

<div class="topic-metadata">

**Author:** [@sidoki](https://discourse.gohugo.io/u/sidoki)\
**Replies:** 3\
**Last updated:** [July 26, 2025, 2:50am UTC](https://discourse.gohugo.io/t/how-to-perform-pagination-under-taxonomy-html/55419 "2025-07-26T02:50:37Z")

</div>

I’m trying to paginate using following codes {{ $maxPage := 20 }} {{ $paginator := .Paginate .Data.Pages $maxPage }} {{ range $paginator.Pages }} {{ . }} {{ end }} {{ partial "pagination.html" . }} Above code will th…

---

## [How to number all publications on the same page (academic-cv theme)?](https://discourse.gohugo.io/t/how-to-number-all-publications-on-the-same-page-academic-cv-theme/55414)

<div class="topic-metadata">

**Author:** [@tunasdelsur](https://discourse.gohugo.io/u/tunasdelsur)\
**Replies:** 2\
**Last updated:** [July 24, 2025, 6:12pm UTC](https://discourse.gohugo.io/t/how-to-number-all-publications-on-the-same-page-academic-cv-theme/55414 "2025-07-24T18:12:37Z")

</div>

Hello everyone, I’m new here and have already searched previous posts and documentation related to the topic I’m interested in. I would like to find a simple way to number all the publications (from the oldest to the mo…

---

## [Paginated tags do not work with JSON output format](https://discourse.gohugo.io/t/paginated-tags-do-not-work-with-json-output-format/55181)

<div class="topic-metadata">

**Author:** [@Sapp94](https://discourse.gohugo.io/u/Sapp94)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 8:49pm UTC](https://discourse.gohugo.io/t/paginated-tags-do-not-work-with-json-output-format/55181 "2025-06-30T20:49:27Z")

</div>

Hello, I want to to create one JSON per tag per page. So for example: /tags/\<tag\>/page/1/index.json /tags/\<tag\>/page/2/index.json The respective json then returns the meta-data of the posts having that tag. For pagin…

---

## [Universal theme contact](https://discourse.gohugo.io/t/universal-theme-contact/55175)

<div class="topic-metadata">

**Author:** [@jhkeselman](https://discourse.gohugo.io/u/jhkeselman)\
**Replies:** 6\
**Last updated:** [June 29, 2025, 4:23pm UTC](https://discourse.gohugo.io/t/universal-theme-contact/55175 "2025-06-29T16:23:00Z")

</div>

I’m attempting to set up a contact form through the universal theme (which has one on the example site) but the form is not appearing like in the demo. I have a new form link added. Similarly, the address on the right si…

---

## [Language switching on paginated pages problem](https://discourse.gohugo.io/t/language-switching-on-paginated-pages-problem/55121)

<div class="topic-metadata">

**Author:** [@tyco](https://discourse.gohugo.io/u/tyco)\
**Replies:** 5\
**Last updated:** [June 21, 2025, 8:50pm UTC](https://discourse.gohugo.io/t/language-switching-on-paginated-pages-problem/55121 "2025-06-21T20:50:15Z")

</div>

I am encountering an issue where if I am on a paginated page of a multilingual site, then the language switcher opens the homepage of the switched to language, not the corresponding paginated page. Is this by design?

---

## [Calling partial broke pagination](https://discourse.gohugo.io/t/calling-partial-broke-pagination/55046)

<div class="topic-metadata">

**Author:** [@Misbakhul29](https://discourse.gohugo.io/u/Misbakhul29)\
**Replies:** 1\
**Last updated:** [June 14, 2025, 3:25pm UTC](https://discourse.gohugo.io/t/calling-partial-broke-pagination/55046 "2025-06-14T15:25:03Z")

</div>

i try to make article page using theme mainroad. i customize the index.html layouts and call partial called hero.html code hero.html : \<div class="flex flex-col w-screen h-screen items-start justify-start gap-22 overf…

---

## [How can I conditionally sort my blog posts based on the sort query parameter in the URL?](https://discourse.gohugo.io/t/how-can-i-conditionally-sort-my-blog-posts-based-on-the-sort-query-parameter-in-the-url/54925)

<div class="topic-metadata">

**Author:** [@tec\_rdx](https://discourse.gohugo.io/u/tec_rdx)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 2:57pm UTC](https://discourse.gohugo.io/t/how-can-i-conditionally-sort-my-blog-posts-based-on-the-sort-query-parameter-in-the-url/54925 "2025-05-30T14:57:09Z")

</div>

I have the following Hugo code to paginate and sort my blog posts by date: {{ $paginator := .Paginate (sort (where .Site.RegularPages "Section" "blog") "Date") }} {{ $paginator := .Paginate (sort (where .Site.RegularPag…

---

## [Can't add archive page](https://discourse.gohugo.io/t/cant-add-archive-page/54841)

<div class="topic-metadata">

**Author:** [@Datwins](https://discourse.gohugo.io/u/Datwins)\
**Replies:** 7\
**Last updated:** [May 23, 2025, 4:00pm UTC](https://discourse.gohugo.io/t/cant-add-archive-page/54841 "2025-05-23T16:00:03Z")

</div>

Here’s my github repository: I am using this zwbetz’s make-a-hugo-blog-from-scratch to teach myself about hugo. I have configured the config file and added categories. I am working on archives page. I am stuck here …

---

## [How to Optimize Hugo Build Time for Large Websites?](https://discourse.gohugo.io/t/how-to-optimize-hugo-build-time-for-large-websites/54633)

<div class="topic-metadata">

**Author:** [@tysonzach](https://discourse.gohugo.io/u/tysonzach)\
**Replies:** 5\
**Last updated:** [May 5, 2025, 3:56pm UTC](https://discourse.gohugo.io/t/how-to-optimize-hugo-build-time-for-large-websites/54633 "2025-05-05T15:56:32Z")

</div>

Hello there, I have been working on a project using Hugo; and it is been great so far. Although, I have started to run into performance issues when building my site. The site has grown quite large with numerous pages, a…

---

## [.Paginate on custom grouping of terms does not work](https://discourse.gohugo.io/t/paginate-on-custom-grouping-of-terms-does-not-work/54571)

<div class="topic-metadata">

**Author:** [@Aisteru](https://discourse.gohugo.io/u/Aisteru)\
**Replies:** 4\
**Last updated:** [May 2, 2025, 2:57pm UTC](https://discourse.gohugo.io/t/paginate-on-custom-grouping-of-terms-does-not-work/54571 "2025-05-02T14:57:18Z")

</div>

I am trying to create a page for a taxonomy that groups pages by the first letter of the title. For this, I created layouts/projects/taxonomy.html, that calls layouts/partials/projects/GroupByTitleFirstLetter.html to per…

---

## [Series article x of y not working for list](https://discourse.gohugo.io/t/series-article-x-of-y-not-working-for-list/54588)

<div class="topic-metadata">

**Author:** [@MikeWebb](https://discourse.gohugo.io/u/MikeWebb)\
**Replies:** 2\
**Last updated:** [May 1, 2025, 10:44am UTC](https://discourse.gohugo.io/t/series-article-x-of-y-not-working-for-list/54588 "2025-05-01T10:44:03Z")

</div>

Hi, I am creating a series section for my own site (no theme) and I have the taxonomy working. I can get a list of series that exist with number of articles in each For the single page I am able to get “this is articl…

---

## [Pager Aliases not in .Aliases](https://discourse.gohugo.io/t/pager-aliases-not-in-aliases/54493)

<div class="topic-metadata">

**Author:** [@npadgett](https://discourse.gohugo.io/u/npadgett)\
**Replies:** 3\
**Last updated:** [April 24, 2025, 5:05am UTC](https://discourse.gohugo.io/t/pager-aliases-not-in-aliases/54493 "2025-04-24T05:05:11Z")

</div>

Where can I find the pager aliases? They aren’t in .Aliases. I’ve tested with and without: config/\_default/hugo.toml: \[pagination\] disableAliases = true I’d like to write this to \_redirects to do server side redire…

---

## [Reverse page numbering in hugo](https://discourse.gohugo.io/t/reverse-page-numbering-in-hugo/54216)

<div class="topic-metadata">

**Author:** [@romeo](https://discourse.gohugo.io/u/romeo)\
**Replies:** 6\
**Last updated:** [April 3, 2025, 3:32pm UTC](https://discourse.gohugo.io/t/reverse-page-numbering-in-hugo/54216 "2025-04-03T15:32:57Z")

</div>

I have a website with about 4000 posts that I use with the PaperMode theme. To avoid having to regenerate the entire index page structure (with summarized posts) each time, I would like to try the following algorithm: th…

---

## [How can i change url with docsy theme?](https://discourse.gohugo.io/t/how-can-i-change-url-with-docsy-theme/53926)

<div class="topic-metadata">

**Author:** [@Renan\_Valerio](https://discourse.gohugo.io/u/Renan_Valerio)\
**Replies:** 2\
**Last updated:** [March 13, 2025, 2:41pm UTC](https://discourse.gohugo.io/t/how-can-i-change-url-with-docsy-theme/53926 "2025-03-13T14:41:13Z")

</div>

Hello! I’m creating a site using “Docsy” theme and i have some problems when i convert to a http server. When I create the public, copy and paste it into the XAMPP htdocs file, it has problems with the links, because w…

---

## [Error: pagination not supported for this page: kind: "page"](https://discourse.gohugo.io/t/error-pagination-not-supported-for-this-page-kind-page/53908)

<div class="topic-metadata">

**Author:** [@Fastidious](https://discourse.gohugo.io/u/Fastidious)\
**Replies:** 20\
**Last updated:** [March 12, 2025, 6:32pm UTC](https://discourse.gohugo.io/t/error-pagination-not-supported-for-this-page-kind-page/53908 "2025-03-12T18:32:34Z")

</div>

Using hugo v0.145.0+extended+withdeploy darwin/arm64 BuildDate=2025-02-26T15:41:25Z VendorInfo=brew. I have the following default.md archetype: --- title: "{{ replace .Name "-" " " | title }}" date: {{ .Date }} draft: f…

---

## [Pagination performance](https://discourse.gohugo.io/t/pagination-performance/53839)

<div class="topic-metadata">

**Author:** [@sgharms](https://discourse.gohugo.io/u/sgharms)\
**Replies:** 5\
**Last updated:** [March 7, 2025, 7:10pm UTC](https://discourse.gohugo.io/t/pagination-performance/53839 "2025-03-07T19:10:57Z")

</div>

Hey Hugo Folks, tl;dr: In building layouts should we prefer multiple, per-section, not DRY templates over a single, DRY template with conditional logic? Two years ago we welcomed a kid and in that intervening time I’ve…

---

## [Pagination not supported](https://discourse.gohugo.io/t/pagination-not-supported/53704)

<div class="topic-metadata">

**Author:** [@cbscpe](https://discourse.gohugo.io/u/cbscpe)\
**Replies:** 4\
**Last updated:** [February 27, 2025, 6:02pm UTC](https://discourse.gohugo.io/t/pagination-not-supported/53704 "2025-02-27T18:02:39Z")

</div>

I get the following error ERROR render of “/Users/peter/5volts/v2/content/pages/downloads/rlv12emulator.md” failed: “/Users/peter/5volts/v2/themes/hugo-theme-hamburg/layouts/\_default/single.html:1:3”: execute of templat…

---

## [How to Customize Pagination URLs in Hugo?](https://discourse.gohugo.io/t/how-to-customize-pagination-urls-in-hugo/53656)

<div class="topic-metadata">

**Author:** [@SamuelPrice](https://discourse.gohugo.io/u/SamuelPrice)\
**Replies:** 1\
**Last updated:** [February 23, 2025, 4:47pm UTC](https://discourse.gohugo.io/t/how-to-customize-pagination-urls-in-hugo/53656 "2025-02-23T16:47:35Z")

</div>

Hello, I’m trying to customize pagination URLs on my Hugo site, but I can’t seem to find the right setting. Right now, my paginated pages look like this: /blog/page/2/ I’d like to change it to something like: /blog/p…

---

## [Issues with .Paginate](https://discourse.gohugo.io/t/issues-with-paginate/53545)

<div class="topic-metadata">

**Author:** [@benmarte](https://discourse.gohugo.io/u/benmarte)\
**Replies:** 7\
**Last updated:** [February 16, 2025, 1:36pm UTC](https://discourse.gohugo.io/t/issues-with-paginate/53545 "2025-02-16T13:36:20Z")

</div>

Hey guys I’m running into an issue when using .Paginate. I’m trying to create a collection of pages by making a union of two sections and then applying pagination to it. It’s very weird since the collection of both sect…

---

## [Displaying Pinned Articles at the Top of the List While Using A Theme](https://discourse.gohugo.io/t/displaying-pinned-articles-at-the-top-of-the-list-while-using-a-theme/53486)

<div class="topic-metadata">

**Author:** [@valexand](https://discourse.gohugo.io/u/valexand)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 10:36am UTC](https://discourse.gohugo.io/t/displaying-pinned-articles-at-the-top-of-the-list-while-using-a-theme/53486 "2025-02-11T10:36:07Z")

</div>

Hi everyone, I’m working on a Hugo site using the Hugo Blog Awesome theme, and I want certain articles to always appear at the top of the list when they have the pinned: true parameter. All my articles are organized in…

---

## [Filtering based on 2 or more taxonomy categories](https://discourse.gohugo.io/t/filtering-based-on-2-or-more-taxonomy-categories/53316)

<div class="topic-metadata">

**Author:** [@ethanjose1](https://discourse.gohugo.io/u/ethanjose1)\
**Replies:** 1\
**Last updated:** [January 29, 2025, 3:26pm UTC](https://discourse.gohugo.io/t/filtering-based-on-2-or-more-taxonomy-categories/53316 "2025-01-29T15:26:45Z")

</div>

Hi all, I wanted to learn if there is any out of box functionality for filtering based on multiple taxonomies. I was checking out this article from @pointyfar (great read btw :grinning:). As far as I can tell when clic…

---

## [Is pagination.pagerSize exposed to templates?](https://discourse.gohugo.io/t/is-pagination-pagersize-exposed-to-templates/53101)

<div class="topic-metadata">

**Author:** [@stoic](https://discourse.gohugo.io/u/stoic)\
**Replies:** 2\
**Last updated:** [January 12, 2025, 7:44am UTC](https://discourse.gohugo.io/t/is-pagination-pagersize-exposed-to-templates/53101 "2025-01-12T07:44:09Z")

</div>

For example, can it be used instead of the Params below? {{ $paginator := (.Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections).ByDate.Reverse (.Site.Params.pagerSizeIndex | default 5))}} Because …

[Next page](https://discourse.gohugo.io/tag/pagination/18.md?match_all_tags=true&page=1&tags%5B%5D=pagination)
