I’m using this theme:
my config says:
uglyURLs = true
disablePathToLower = true
paginatePath = “page”
canonifyurls = true
for some reason pagination links look like this:
There is no reference to “index” in the theme:
href=“{{ .Paginator.Next.URL }}”
In fact, here we can see all files containing the string “index”:
$ grep -r “index” . -l
./.git/hooks/pre-commit.sample
./exampleSite/content/post/creating-a-new-theme.md
./exampleSite/content/post/goisforlovers.md
./exampleSite/content/post/hugoisforlovers.md
./layouts/_default/single.html
./layouts/_default/summary.html
./layouts/partials/meta-terms.html
./layouts/partials/sidebar.html
./static/css/cookieconsent.min.css
./static/css/lightbox.css
./static/css/lightbox.min.css
./static/css/style.css
./static/js/cookieconsent.min.js
./static/js/lightbox-plus-jquery.js
./static/js/lightbox-plus-jquery.min.js
./static/js/lightbox-plus-jquery.min.map
./static/js/lightbox.js
With other themes, I have had similar issues. Pagination URL generation is quite opaque to me.