# \#pagination

**URL:** https://discourse.gohugo.io/tag/pagination/18.md?match_all_tags=true&page=1&tags%5B%5D=pagination

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

**Page:** 2

---

## [Deploying on GitHub pages produces a site within a site](https://discourse.gohugo.io/t/deploying-on-github-pages-produces-a-site-within-a-site/52981)

<div class="topic-metadata">

**Author:** [@zacharysarah](https://discourse.gohugo.io/u/zacharysarah)\
**Replies:** 5\
**Last updated:** [January 3, 2025, 8:19am UTC](https://discourse.gohugo.io/t/deploying-on-github-pages-produces-a-site-within-a-site/52981 "2025-01-03T08:19:14Z")

</div>

I just read the documentation for deploying on GitHub Pages. Neat! I went to GitHub to try it out in my project repo, at Settings \> Pages, and saw that GitHub had already pre-populated a hugo.yaml file for me based on in…

---

## [How to change Hugo's naming convention of paginated pages?](https://discourse.gohugo.io/t/how-to-change-hugos-naming-convention-of-paginated-pages/52967)

<div class="topic-metadata">

**Author:** [@UbicK](https://discourse.gohugo.io/u/UbicK)\
**Replies:** 1\
**Last updated:** [January 2, 2025, 5:18pm UTC](https://discourse.gohugo.io/t/how-to-change-hugos-naming-convention-of-paginated-pages/52967 "2025-01-02T17:18:42Z")

</div>

I would like my website pagination URLs to be: http://localhost:1313/ subfolder/page-# And not: http://localhost:1313/subfolder/page/# How can I reach this result? I tried editing the configuration file (hugo.toml), …

---

## [Ability to get section names programmatically](https://discourse.gohugo.io/t/ability-to-get-section-names-programmatically/52872)

<div class="topic-metadata">

**Author:** [@pjebs](https://discourse.gohugo.io/u/pjebs)\
**Replies:** 5\
**Last updated:** [December 23, 2024, 5:35am UTC](https://discourse.gohugo.io/t/ability-to-get-section-names-programmatically/52872 "2024-12-23T05:35:32Z")

</div>

See: Ability to disable section list page routes but have valid routes for pages in that section · Issue #13185 · gohugoio/hugo · GitHub In your example, {{ range (.GetPage "/docs/core-concepts").Pages }} \<h2\>\<a href…

---

## [Title for Tag page and Pagination](https://discourse.gohugo.io/t/title-for-tag-page-and-pagination/40370)

<div class="topic-metadata">

**Author:** [@idarek](https://discourse.gohugo.io/u/idarek)\
**Replies:** 9\
**Last updated:** [November 16, 2024, 6:07pm UTC](https://discourse.gohugo.io/t/title-for-tag-page-and-pagination/40370 "2024-11-16T18:07:21Z")

</div>

Hello All, I am looking in way to add a word to the title for Tag page and for Pagination (in the \<head\>) The issue In Google Analytics 4 by default sites are displayed by Title rather than /path/ like it used to be in…

---

## [ByParam not playing well with pagination](https://discourse.gohugo.io/t/byparam-not-playing-well-with-pagination/52202)

<div class="topic-metadata">

**Author:** [@specimen](https://discourse.gohugo.io/u/specimen)\
**Replies:** 9\
**Last updated:** [October 31, 2024, 9:33am UTC](https://discourse.gohugo.io/t/byparam-not-playing-well-with-pagination/52202 "2024-10-31T09:33:48Z")

</div>

This took me hours to debug. Related to ByParam not playing well with pagination · Issue #12986 · gohugoio/hugo · GitHub Please run GitHub - ka259/hugo-test and see the error about paginate. Removing the .Pages from the…

---

## [JSON output with and without pagination](https://discourse.gohugo.io/t/json-output-with-and-without-pagination/52054)

<div class="topic-metadata">

**Author:** [@njbair](https://discourse.gohugo.io/u/njbair)\
**Replies:** 5\
**Last updated:** [October 21, 2024, 6:43pm UTC](https://discourse.gohugo.io/t/json-output-with-and-without-pagination/52054 "2024-10-21T18:43:12Z")

</div>

I’m trying to render a couple of JSON outputs, given a content folder structure like so: - content - posts - 2023 - post 1 - post 2 - post 3 - 2024 - post 4 - post 5 - post …

---

## [Pagination Deprecated Error](https://discourse.gohugo.io/t/pagination-deprecated-error/51571)

<div class="topic-metadata">

**Author:** [@SamGreenwood](https://discourse.gohugo.io/u/SamGreenwood)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 3:14pm UTC](https://discourse.gohugo.io/t/pagination-deprecated-error/51571 "2024-09-16T15:14:52Z")

</div>

I’m wondering how to fix the following error: Error TextWARN deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead. hugo: collect…

---

## [Reverse order of paginated content by date](https://discourse.gohugo.io/t/reverse-order-of-paginated-content-by-date/51061)

<div class="topic-metadata">

**Author:** [@leecalvin](https://discourse.gohugo.io/u/leecalvin)\
**Replies:** 2\
**Last updated:** [August 11, 2024, 8:08pm UTC](https://discourse.gohugo.io/t/reverse-order-of-paginated-content-by-date/51061 "2024-08-11T20:08:53Z")

</div>

Hey all. I’ve looked over pagination code via Google, blog posts, and through this forum and I can’t seem to find an answer to a simple problem. All I want is for the paginated pages to have the newest (by date) on the f…

---

## [Fixing 404 Not Found on removed pages in GSC](https://discourse.gohugo.io/t/fixing-404-not-found-on-removed-pages-in-gsc/50928)

<div class="topic-metadata">

**Author:** [@nick-name](https://discourse.gohugo.io/u/nick-name)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 3:54pm UTC](https://discourse.gohugo.io/t/fixing-404-not-found-on-removed-pages-in-gsc/50928 "2024-07-29T15:54:56Z")

</div>

Our site has removed content in the past year and our Google Seach Console (GSC) is still showing 404 Not Found errors in our current reports. For instance, this topic has been aliased to another: https://website.come/…

---

## [Don't paginate posts in subfolders](https://discourse.gohugo.io/t/dont-paginate-posts-in-subfolders/50873)

<div class="topic-metadata">

**Author:** [@writeblankspace](https://discourse.gohugo.io/u/writeblankspace)\
**Replies:** 1\
**Last updated:** [July 26, 2024, 2:00pm UTC](https://discourse.gohugo.io/t/dont-paginate-posts-in-subfolders/50873 "2024-07-26T14:00:49Z")

</div>

├── content │ ├── \_index.md │ └── posts │ ├── \_index.md │ ├── foo.md │ ├── bar.md │ ├── subfolder │ │ ├── \_index.md │ │ ├── subfoo.md │ │ ├── subbar.md Is it possible …

---

## [Couldn't control the pager-size in paginator](https://discourse.gohugo.io/t/couldnt-control-the-pager-size-in-paginator/50788)

<div class="topic-metadata">

**Author:** [@fastguy](https://discourse.gohugo.io/u/fastguy)\
**Replies:** 21\
**Last updated:** [July 20, 2024, 5:53pm UTC](https://discourse.gohugo.io/t/couldnt-control-the-pager-size-in-paginator/50788 "2024-07-20T17:53:10Z")

</div>

Suppose my paginator has 20 pages, and I want to show maximum 10 pages in it, then how to do it? I tried these codes in config file, but couldn’t make it work: \[languages.en.params\] paginate = true disableAl…

---

## [Pager (1,2,3) not working in translated Blog-list page versions](https://discourse.gohugo.io/t/pager-1-2-3-not-working-in-translated-blog-list-page-versions/50755)

<div class="topic-metadata">

**Author:** [@fastguy](https://discourse.gohugo.io/u/fastguy)\
**Replies:** 10\
**Last updated:** [July 17, 2024, 8:15pm UTC](https://discourse.gohugo.io/t/pager-1-2-3-not-working-in-translated-blog-list-page-versions/50755 "2024-07-17T20:15:23Z")

</div>

Hi Everyone. Pagination is working and displaying the blog-posts on all language versions of Blog-list page. But, the Pager (Previous,1,2,3…,Next) is not working on translated versions of Blog-list page. It’s working …

---

## [Error in building after adding new post due to pagination](https://discourse.gohugo.io/t/error-in-building-after-adding-new-post-due-to-pagination/50395)

<div class="topic-metadata">

**Author:** [@muali](https://discourse.gohugo.io/u/muali)\
**Replies:** 4\
**Last updated:** [June 23, 2024, 6:11pm UTC](https://discourse.gohugo.io/t/error-in-building-after-adding-new-post-due-to-pagination/50395 "2024-06-23T18:11:53Z")

</div>

Hi, I am trying to build a blog with the Poison theme. I have some basic single About/Publication pages (as seen on the live version here) set up but am struggling to add blog posts under content/posts. This is what the …

---

## [Pagination: using pager URLs with a 'complex' pagination logic](https://discourse.gohugo.io/t/pagination-using-pager-urls-with-a-complex-pagination-logic/50341)

<div class="topic-metadata">

**Author:** [@Arif](https://discourse.gohugo.io/u/Arif)\
**Replies:** 1\
**Last updated:** [June 19, 2024, 3:02pm UTC](https://discourse.gohugo.io/t/pagination-using-pager-urls-with-a-complex-pagination-logic/50341 "2024-06-19T15:02:47Z")

</div>

With reference to this topic. My pagination logic is like this in the list template (which renders the homepage and list pages). Summary{{/\* Set Pages \*/}} {{- $pages := .Pages }} {{- if .IsHome }} {{- $p := …

---

## [Pagination: using pager values within the head element](https://discourse.gohugo.io/t/pagination-using-pager-values-within-the-head-element/50340)

<div class="topic-metadata">

**Author:** [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Replies:** 0\
**Last updated:** [June 18, 2024, 8:15pm UTC](https://discourse.gohugo.io/t/pagination-using-pager-values-within-the-head-element/50340 "2024-06-18T20:15:41Z")

</div>

Objective Render something like this, from a base template, for each pager of a paginated collection: \<head\> ... \<title\>Books - Page 3 | My Site\</title\> \<link rel="canonical" href="http://localhost:1313/en/books/p…

---

## [Permalink are same on pagination pages](https://discourse.gohugo.io/t/permalink-are-same-on-pagination-pages/50307)

<div class="topic-metadata">

**Author:** [@razon](https://discourse.gohugo.io/u/razon)\
**Replies:** 6\
**Last updated:** [June 15, 2024, 10:22am UTC](https://discourse.gohugo.io/t/permalink-are-same-on-pagination-pages/50307 "2024-06-15T10:22:37Z")

</div>

Not sure if this is by designed or a bug, paginaton pages’ Permalink (RelPermalink) are same. // layouts/index.html {{ range .Paginator.Pages }} {{ warnf "%s" .Title }} {{ end }} {{ warnf "\[%s\] page number: %d" .Perm…

---

## [Is it possible to have equal number of posts in first and subsequent pages?](https://discourse.gohugo.io/t/is-it-possible-to-have-equal-number-of-posts-in-first-and-subsequent-pages/50284)

<div class="topic-metadata">

**Author:** [@Arif](https://discourse.gohugo.io/u/Arif)\
**Replies:** 13\
**Last updated:** [June 14, 2024, 2:48pm UTC](https://discourse.gohugo.io/t/is-it-possible-to-have-equal-number-of-posts-in-first-and-subsequent-pages/50284 "2024-06-14T14:48:43Z")

</div>

The list design in my test site was working well until I decided to try a new design with three columns for larger screens. Now, the posts are not even on first and subsequent pages. Is there a Hugo way to close these ga…

---

## [Sorting ByLastmod + Pagination doesn't sort properly](https://discourse.gohugo.io/t/sorting-bylastmod-pagination-doesnt-sort-properly/50225)

<div class="topic-metadata">

**Author:** [@diowo](https://discourse.gohugo.io/u/diowo)\
**Replies:** 5\
**Last updated:** [June 9, 2024, 2:06pm UTC](https://discourse.gohugo.io/t/sorting-bylastmod-pagination-doesnt-sort-properly/50225 "2024-06-09T14:06:02Z")

</div>

Hello, I have a list section on my website with pagination, the first range is just .Paginate.Pages and it sorts the articles by the day I generate them, and I added a toggle to show another range that also has paginati…

---

## [Pagination seems to create Aliases](https://discourse.gohugo.io/t/pagination-seems-to-create-aliases/22422)

<div class="topic-metadata">

**Author:** [@runhide](https://discourse.gohugo.io/u/runhide)\
**Replies:** 7\
**Last updated:** [June 6, 2024, 4:21pm UTC](https://discourse.gohugo.io/t/pagination-seems-to-create-aliases/22422 "2024-06-06T16:21:49Z")

</div>

I’m following up on this thread about Aliases showing up in output even though they are not being used. The issue seems to be related to pagination. Removing pagination from my project removes Aliases from appearing in …

---

## [Iterate thru all assets across multiple list pages](https://discourse.gohugo.io/t/iterate-thru-all-assets-across-multiple-list-pages/49632)

<div class="topic-metadata">

**Author:** [@Luke\_Jaeger](https://discourse.gohugo.io/u/Luke_Jaeger)\
**Replies:** 2\
**Last updated:** [May 9, 2024, 11:45am UTC](https://discourse.gohugo.io/t/iterate-thru-all-assets-across-multiple-list-pages/49632 "2024-05-09T11:45:47Z")

</div>

Hello! I have a custom template with a few small issues. The dev who built the template did a great job but unfortunately has dropped out of communication. I’m not a Hugo expert but I have a good grasp of html and I’m …

---

## [Error coming in the pagination](https://discourse.gohugo.io/t/error-coming-in-the-pagination/49299)

<div class="topic-metadata">

**Author:** [@Sumiyuru\_Priyasara](https://discourse.gohugo.io/u/Sumiyuru_Priyasara)\
**Replies:** 0\
**Last updated:** [April 15, 2024, 11:46am UTC](https://discourse.gohugo.io/t/error-coming-in-the-pagination/49299 "2024-04-15T11:46:57Z")

</div>

{{ $paginator := .Paginate (where .Pages "Section" "portfolio") }} \<!----\> {{ range $paginator.Pages }} \<!----\> {{ if eq (mod .Weight 2) 0 }} \<section class="text left" id="p3"\> \<div class="container"\> \<div class="…

---

## [The New Version is Affecting the priority order](https://discourse.gohugo.io/t/the-new-version-is-affecting-the-priority-order/48831)

<div class="topic-metadata">

**Author:** [@Devendhiran.d\_Devar](https://discourse.gohugo.io/u/Devendhiran.d_Devar)\
**Replies:** 2\
**Last updated:** [March 16, 2024, 4:25pm UTC](https://discourse.gohugo.io/t/the-new-version-is-affecting-the-priority-order/48831 "2024-03-16T16:25:51Z")

</div>

Hello I’m updating Hugo from version 0.82.0 to 0.121.1 for my project. After the upgrade, I went over every page and saw that several lists on the page had changed in order. I didn’t alter any of the page’s priority keys…

---

## [Paginator issue in custom layouts](https://discourse.gohugo.io/t/paginator-issue-in-custom-layouts/48258)

<div class="topic-metadata">

**Author:** [@weearc](https://discourse.gohugo.io/u/weearc)\
**Replies:** 3\
**Last updated:** [February 15, 2024, 8:43am UTC](https://discourse.gohugo.io/t/paginator-issue-in-custom-layouts/48258 "2024-02-15T08:43:22Z")

</div>

Hi, I’m quite new to hugo. When creating a new layout archives for it, I’d like to create a paginator for this page. By using: {{ $pages:= where site.RegularPages "Type" "in" site.Params.mainSections }} It will get my…

---

## [Show navigation only when posts exceed the paginate limit](https://discourse.gohugo.io/t/show-navigation-only-when-posts-exceed-the-paginate-limit/48107)

<div class="topic-metadata">

**Author:** [@Arif](https://discourse.gohugo.io/u/Arif)\
**Replies:** 2\
**Last updated:** [February 4, 2024, 7:32pm UTC](https://discourse.gohugo.io/t/show-navigation-only-when-posts-exceed-the-paginate-limit/48107 "2024-02-04T19:32:19Z")

</div>

I want the navigation template/partial to only show up in list pages when the number of posts exceed those configured in hugo.toml by default (10). How to go about it?

---

## [How do I have a custom index page while using the previous index page aswell?](https://discourse.gohugo.io/t/how-do-i-have-a-custom-index-page-while-using-the-previous-index-page-aswell/48078)

<div class="topic-metadata">

**Author:** [@Yeti](https://discourse.gohugo.io/u/Yeti)\
**Replies:** 2\
**Last updated:** [February 2, 2024, 4:50pm UTC](https://discourse.gohugo.io/t/how-do-i-have-a-custom-index-page-while-using-the-previous-index-page-aswell/48078 "2024-02-02T16:50:48Z")

</div>

Hello! Total newbie to hugo here! I’m using this theme CaiJimmy/hugo-theme-stack: Card-style Hugo theme designed for bloggers (github.com) in my hugo site. I understand that layouts/index.html is where the landing page …

---

## [The last of the menu items](https://discourse.gohugo.io/t/the-last-of-the-menu-items/47828)

<div class="topic-metadata">

**Author:** [@ZhangChengLin](https://discourse.gohugo.io/u/ZhangChengLin)\
**Replies:** 4\
**Last updated:** [January 16, 2024, 6:22am UTC](https://discourse.gohugo.io/t/the-last-of-the-menu-items/47828 "2024-01-16T06:22:57Z")

</div>

{{ range .Site.Menus.xxxx}} \<li\>\<hr class="dropdown-divider"\>\</li\> {{ end }} How can I make the last children not contain this separator? Is there a way to do this? isMenuChildrenLast OR isChildrenLast

---

## [A simple way to create subheads within lists](https://discourse.gohugo.io/t/a-simple-way-to-create-subheads-within-lists/47700)

<div class="topic-metadata">

**Author:** [@clay](https://discourse.gohugo.io/u/clay)\
**Replies:** 8\
**Last updated:** [January 4, 2024, 9:48pm UTC](https://discourse.gohugo.io/t/a-simple-way-to-create-subheads-within-lists/47700 "2024-01-04T21:48:30Z")

</div>

I’m using a version of the PaperMod theme for academic websites. I created a section for publications, and tried to create a list page that breaks publications into subhead sections by type (peer-reviewed publications, e…

---

## [Multi-language site, how to make linktitle correctly display the title of the corresponding language in the menu template](https://discourse.gohugo.io/t/multi-language-site-how-to-make-linktitle-correctly-display-the-title-of-the-corresponding-language-in-the-menu-template/47584)

<div class="topic-metadata">

**Author:** [@ZhangChengLin](https://discourse.gohugo.io/u/ZhangChengLin)\
**Replies:** 8\
**Last updated:** [December 26, 2023, 10:28am UTC](https://discourse.gohugo.io/t/multi-language-site-how-to-make-linktitle-correctly-display-the-title-of-the-corresponding-language-in-the-menu-template/47584 "2023-12-26T10:28:12Z")

</div>

Multi-language site, how to make linktitle correctly display the title of the corresponding language in the menu template \<a class="nav-link" href="{{- .PageRef | relLangURL -}}" title="{{ or (T .Identifier)…

---

## [How to check the taxonomy and term page](https://discourse.gohugo.io/t/how-to-check-the-taxonomy-and-term-page/47437)

<div class="topic-metadata">

**Author:** [@xiao\_qing](https://discourse.gohugo.io/u/xiao_qing)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 4:17am UTC](https://discourse.gohugo.io/t/how-to-check-the-taxonomy-and-term-page/47437 "2023-12-14T04:17:27Z")

</div>

I want fix “Pagination SEO issue: canonical url on paginated pages does not work” according to this method hugo-testing/layouts/\_default/baseof.html at hugo-forum-topic-37643 · jmooring/hugo-testing · GitHub. we can us…

---

## [Using sorting and paginate together](https://discourse.gohugo.io/t/using-sorting-and-paginate-together/47423)

<div class="topic-metadata">

**Author:** [@Prajkt\_Yeole](https://discourse.gohugo.io/u/Prajkt_Yeole)\
**Replies:** 7\
**Last updated:** [December 12, 2023, 5:26pm UTC](https://discourse.gohugo.io/t/using-sorting-and-paginate-together/47423 "2023-12-12T17:26:40Z")

</div>

I have the below frontmatter --- title: "stats" votes: 0 views: 3449 usage: 1788 --- I need to sort all the recursive pages in multiple sections in the same folder by range. This is what I tried but got an error. execu…

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

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