Skip to content

Pager.html not working well #40

@frodriguezsmartclip

Description

@frodriguezsmartclip

Hi there,

The example site, content of blog site, the button's pagination Next and Prev not working well:

https://example.docsy.dev/blog/2018/10/06/easy-documentation-with-docsy/

Anotación 2020-02-12 103238__12

The code of pager.html is this (located in themes\docsy\layouts\partials\pager.html):

<ul class="list-unstyled d-flex justify-content-between align-items-center mb-0 pt-5">
  <li>
    <a {{if .PrevInSection}}href="{{.PrevInSection.RelPermalink}}"{{end}} class="btn btn-primary {{if not .PrevInSection}} disabled{{end}}"><span class="mr-1">←</span> {{ T "ui_pager_prev" }}</a>
  </li>
    <a {{if .NextInSection}}href="{{.NextInSection.RelPermalink}}"{{end}} class="btn btn-primary {{if not .NextInSection}} disabled{{end}}">{{ T "ui_pager_next" }} <span class="ml-1">→</span></a>
  </li>
</ul>

The order is changed. I don't know if it's because of the weight, or why not ... But I think it may be due to the order-content that Hugo has set by default...

In every filename.md the weigth order first (hugo docs) is:

Lower weight gets higher precedence. So content with lower weight will come first.

I have all these content-files ordered ascending by weight... but the prev/next change the order....

The same thing happens with the docs section, if you put the page...

Any ideas to fix it? Thank you! 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions