Open frodriguezsmartclip opened 4 years ago
I saw this on AirFlow and agree, this would be valuable.
Hello again! I know that right now for COVID-19 are difficult times ... but is there any progress on this?
Thank you. regards
Thanks for the reminder! I'll have a look at the AirFlow site today and see if it's an easy update.
@LisaFC Thanks a lot π
Just curious if there was any progress on the idea around "Next" and "Previous"
Just wonder if this feature is already included, since I can see the code inside the theme repo.
It is indeed included, #937 shows a fix to include it in your site.
@chalin, you added the pager, is there a parameter to enable it rather than having to manually add it to your theme files?
Should also look at #878
I have included the partial "pager.html" in my right sidebar in the docs section. However the previous/next logic seems to be reversed. "Previous" takes me to the next page. And "Next" takes me to the previous page.
While browsing the Hugo issues I found this: https://github.com/gohugoio/hugoDocs/issues/1391
Apparently the "default sort order" is applied: Weight > Date.Reverse > LinkTitle > FilePath
I tried hard to wrap my mind around that logic. Newest blog entries are shown first. Okay. And "Previous" links to an older blog entry that is further down. Well, okay, I guess. For blogs at least.
But in the world of documentation that does not make sense to me. I read documentation from top to bottom. And I expected "Next" to point to the next page in the documentation.
Is this a quirk when using Hugo for structured documentation? Am I the only one seeing this?
Please give me a demo that how to add page prev and next to the bottom of my own document.
@BrentHuang : It seems that currently there is no easy way to do it, and the current implementation might be buggy, and also has limitations.
@fekete-robert thank you!
This is a useful feature. I hope to get official support and demos soon.
Hi there,
I came from this would be nice a new feature for docsy theme: A next/previous button for the docs section. π
The idea came from this customized docsy theme example website, specifically I saw the apache's airflow webpage documentation section, and I liked it the idea:
The code could be similar to their theme like this? (link)
I made this on my custom theme code for "pager.html" (inside layouts/partials/pager.html): π
EDIT:
Added other code that I tried to work, but again, ordered by date:
BUT, It's ordered by date, not by weight inside each section order left side...
Could this be implemented for the docsy theme in the future? It would be amazing! βΊοΈ
Thanks a lot!! Regards
PS: I can not add a LABEL for this issue "enhancement"... maybe is restricted only for admins
@LisaFC @RichieEscarez